[Change] Some more minor cleanup that noone cares about.

This commit is contained in:
Allanis 2013-05-16 15:59:46 +01:00
parent b38d4e1f74
commit 5f2f57f6ee
3 changed files with 6 additions and 3 deletions

View File

@ -13,9 +13,6 @@
#include "pack.h"
#include "opengl.h"
#define SCREEN_W gl_screen.w
#define SCREEN_H gl_screen.h
// offsets to Adjust the pilot's place onscreen
//to be in the middle, even with the GUI.
extern double gui_xoff;
@ -724,6 +721,7 @@ int gl_init(void) {
gl_screen.tex_max);
DEBUG("Renderer: %s", glGetString(GL_RENDERER));
DEBUG("Version: %s", glGetString(GL_VERSION));
if(!gl_has(OPENGL_FRAG_SHADER))
DEBUG("No fragment shader extension detected");
DEBUG("");

View File

@ -1,4 +1,5 @@
#pragma once
#include <stdint.h>
#include <SDL.h>
#include <SDL_opengl.h>
#include "colour.h"
@ -36,6 +37,9 @@ typedef struct glInfo_ {
} glInfo;
extern glInfo gl_screen; // Local structure set with gl_init etc.
#define SCREEN_W gl_screen.w
#define SCREEN_H gl_screen.h
#define COLOUR(x) glColor4d((x).r, (x).g, (x).b, (x).a)
#define ACOLOUR(x,a) glColor4d((x).r, (x).g, (x).b, a)

View File

@ -4,6 +4,7 @@
#include "xml.h"
#include "lephisto.h"
#include "opengl.h"
#include "log.h"
#include "physics.h"
#include "rng.h"