Browse Source
Stubbed out the remaining OpenGL calls, disabled everything SDL, ifdef'ed out OpenGL 2.0-related code, and added a new stub for remaining VID_ and GL_ calls. Portable configuration compiles now, though it still crashes at run-time.
console
Stubbed out the remaining OpenGL calls, disabled everything SDL, ifdef'ed out OpenGL 2.0-related code, and added a new stub for remaining VID_ and GL_ calls. Portable configuration compiles now, though it still crashes at run-time.
console
15 changed files with 99 additions and 5 deletions
-
6engine/Quake/gl_mesh.c
-
2engine/Quake/gl_model.c
-
4engine/Quake/gl_rmain.c
-
7engine/Quake/gl_rmisc.c
-
2engine/Quake/gl_screen.c
-
2engine/Quake/main_sdl.c
-
6engine/Quake/r_alias.c
-
4engine/Quake/r_brush.c
-
6engine/Quake/r_world.c
-
1engine/Quake/sys_sdl_win.c
-
8engine/UniQuake/stub/stub_opengl.c
-
42engine/UniQuake/stub/stub_vidgl.c
-
2engine/UniQuake/sys_uniquake.c
-
9engine/Windows/VisualStudio/uniquake.vcxproj
-
3engine/Windows/VisualStudio/uniquake.vcxproj.filters
@ -0,0 +1,42 @@ |
|||
#if !defined(USE_LIBSDL) && !defined(USE_OPENGL) |
|||
|
|||
#include "quakedef.h" |
|||
|
|||
int gl_stencilbits = 0; |
|||
qboolean gl_texture_NPOT = false; |
|||
qboolean gl_glsl_gamma_able = false; |
|||
qboolean gl_mtexable = false; |
|||
float gl_max_anisotropy = 1; |
|||
qboolean gl_texture_env_combine = false; |
|||
qboolean gl_texture_env_add = false; |
|||
|
|||
cvar_t vid_gamma = { "gamma", "1", CVAR_ARCHIVE }; |
|||
cvar_t vid_contrast = { "contrast", "1", CVAR_ARCHIVE }; |
|||
|
|||
void VID_Init(void) |
|||
{ |
|||
Cvar_RegisterVariable(&vid_gamma); |
|||
Cvar_RegisterVariable(&vid_contrast); |
|||
} |
|||
|
|||
void VID_Shutdown(void) |
|||
{ |
|||
} |
|||
|
|||
void VID_Toggle(void) |
|||
{ |
|||
} |
|||
|
|||
void VID_Lock(void) |
|||
{ |
|||
} |
|||
|
|||
void GL_BeginRendering(int *x, int *y, int *width, int *height) |
|||
{ |
|||
} |
|||
|
|||
void GL_EndRendering(void) |
|||
{ |
|||
} |
|||
|
|||
#endif // !USE_LIBSDL && !USE_OPENGL |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue