Port to SDL 2.0

This commit is contained in:
Jakub Skokan 2016-07-12 15:36:50 +02:00
parent 58cb54409a
commit 5fe5849b38
15 changed files with 5721 additions and 4679 deletions

View file

@ -1,5 +1,6 @@
#include "SDL.h"
#include "SDL_opengl.h"
#include <GL/glu.h>
#include <AL/al.h>
#include "antigrav.h"
@ -7,8 +8,9 @@
const float Menu::ANIMLEN = 0.25;
GLuint Menu::keys[4];
Menu::Menu()
Menu::Menu(SDL_Window *window)
{
this->window = window;
int vp[4];
glGetIntegerv(GL_VIEWPORT, vp);
width = vp[2];
@ -224,6 +226,6 @@ void Menu::update()
// Draw other stuff
SDL_GL_SwapBuffers();
SDL_GL_SwapWindow(window);
}