camera1 goes in rendergl

master
Daniel Kolesa 2020-06-23 00:32:03 +02:00
parent eb152e584e
commit f8f809ec92
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,4 @@
#include "world.hh"
#include "light.hh"
extern physent *camera1; // special ent that acts as camera, same object as player1 in FPS mode
#endif

View File

@ -34,6 +34,10 @@ extern void glerror(const char *file, int line, GLenum error);
#define GLERROR do { if(glerr) { GLenum error = glGetError(); if(error != GL_NO_ERROR) glerror(__FILE__, __LINE__, error); } } while(0)
struct physent; // FIXME
extern physent *camera1; // special ent that acts as camera, same object as player1 in FPS mode
void gl_checkextensions();
void gl_init();
void gl_resize();