[Change] Some more minor cleanup that noone cares about.
This commit is contained in:
parent
b38d4e1f74
commit
5f2f57f6ee
@ -13,9 +13,6 @@
|
|||||||
#include "pack.h"
|
#include "pack.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
|
|
||||||
#define SCREEN_W gl_screen.w
|
|
||||||
#define SCREEN_H gl_screen.h
|
|
||||||
|
|
||||||
// offsets to Adjust the pilot's place onscreen
|
// offsets to Adjust the pilot's place onscreen
|
||||||
//to be in the middle, even with the GUI.
|
//to be in the middle, even with the GUI.
|
||||||
extern double gui_xoff;
|
extern double gui_xoff;
|
||||||
@ -724,6 +721,7 @@ int gl_init(void) {
|
|||||||
gl_screen.tex_max);
|
gl_screen.tex_max);
|
||||||
|
|
||||||
DEBUG("Renderer: %s", glGetString(GL_RENDERER));
|
DEBUG("Renderer: %s", glGetString(GL_RENDERER));
|
||||||
|
DEBUG("Version: %s", glGetString(GL_VERSION));
|
||||||
if(!gl_has(OPENGL_FRAG_SHADER))
|
if(!gl_has(OPENGL_FRAG_SHADER))
|
||||||
DEBUG("No fragment shader extension detected");
|
DEBUG("No fragment shader extension detected");
|
||||||
DEBUG("");
|
DEBUG("");
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include <stdint.h>
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#include <SDL_opengl.h>
|
#include <SDL_opengl.h>
|
||||||
#include "colour.h"
|
#include "colour.h"
|
||||||
@ -36,6 +37,9 @@ typedef struct glInfo_ {
|
|||||||
} glInfo;
|
} glInfo;
|
||||||
extern glInfo gl_screen; // Local structure set with gl_init etc.
|
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 COLOUR(x) glColor4d((x).r, (x).g, (x).b, (x).a)
|
||||||
#define ACOLOUR(x,a) glColor4d((x).r, (x).g, (x).b, a)
|
#define ACOLOUR(x,a) glColor4d((x).r, (x).g, (x).b, a)
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "lephisto.h"
|
#include "lephisto.h"
|
||||||
|
#include "opengl.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "physics.h"
|
#include "physics.h"
|
||||||
#include "rng.h"
|
#include "rng.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user