相关疑难解决方法(0)

Xcode与Visual Studio - SDL C++

我使用各种在线教程和几本书自学编程.目前它是C++.我在过去几天里做了一些OpenGL和SDL.

我有一个小程序,它创建了一个墙,阻止一个小方块穿过它.

这是我的代码:

    //
    //  main.cpp
    //  SDL_Template
    //

    // The headers
    #include <stdlib.h>
    #include <string>

    // SDL headers
    #include <SDL/SDL.h>
    #include "SDL_image/SDL_image.h"
    //#include "SDL/SDL_ttf.h"
    //#include "SDL/SDL_mixer.h"

    // Other headers
    #include <OpenGL/gl3.h>


    // Screen attributes
    const int SCREEN_WIDTH = 640;
    const int SCREEN_HEIGHT = 480;
    const int SCREEN_BPP = 32;

    // The frame rate
    const int FRAMES_PER_SECOND = 20;

    // The attributes of the square
    const int SQUARE_WIDTH = 20;
    const int SQUARE_HEIGHT = 20;

    // The surfaces …
Run Code Online (Sandbox Code Playgroud)

c++ xcode sdl visual-studio-2010

1
推荐指数
1
解决办法
2186
查看次数

标签 统计

c++ ×1

sdl ×1

visual-studio-2010 ×1

xcode ×1