Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #ifdef __cplusplus
- extern "C"
- #endif
- SDL_Surface* screen;
- int multisample_level = 16;
- int SCREEN_RES[2] = {800,600};
- int main(int argc, char** argv) {
- SDL_Init(SDL_INIT_EVERYTHING);
- TTF_Init();
- SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1);
- Uint32 screenflags = SDL_HWSURFACE|SDL_OPENGL|SDL_RESIZABLE;
- char caption[] = "CS412 HW 5 - Ian Mallett";
- SDL_WM_SetCaption(caption,caption);
- SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS,1);
- SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES,multisample_level);
- screen = SDL_SetVideoMode(SCREEN_RES[0],SCREEN_RES[1],32,screenflags);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement