mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Updated
This commit is contained in:
parent
9f669cff1c
commit
4a582cfbb5
7 changed files with 19 additions and 3 deletions
|
@ -237,8 +237,8 @@ if (WITH_CLIENT)
|
|||
|
||||
file(GLOB_RECURSE SOURCES_CLIENT "code/client/*.c" "code/client/*.cpp" "code/qcommon/puff.c")
|
||||
file(GLOB_RECURSE SOURCES_UILIB "code/uilib/*.c" "code/uilib/*.cpp")
|
||||
include("code/renderergl2/glsl/shaders.cmake")
|
||||
#file(GLOB_RECURSE SOURCES_RENDERER "code/sdl/*.c" "code/renderer/*.c" "code/renderer/*.cpp")
|
||||
include("code/renderergl2/glsl/shaders.cmake")
|
||||
file(GLOB_RECURSE SOURCES_RENDERER "code/sdl/*.c" "code/renderercommon/*.c" "code/renderergl2/*.c" "code/renderergl2/*.cpp")
|
||||
list(FILTER SOURCES_RENDERER EXCLUDE REGEX "code/renderergl2/tr_subs.c")
|
||||
list(FILTER SOURCES_RENDERER EXCLUDE REGEX "code/renderergl2/tr_model.c")
|
||||
|
|
|
@ -889,7 +889,7 @@ void GfxInfo_f( void )
|
|||
ri.Printf( PRINT_ALL, "GL_VERSION: %s\n", glConfig.version_string );
|
||||
ri.Printf( PRINT_ALL, "GL_EXTENSIONS: %s\n", glConfig.extensions_string );
|
||||
ri.Printf( PRINT_ALL, "GL_MAX_TEXTURE_SIZE: %d\n", glConfig.maxTextureSize );
|
||||
ri.Printf( PRINT_ALL, "GL_MAX_ACTIVE_TEXTURES_ARB: %d\n", glConfig.maxActiveTextures );
|
||||
//ri.Printf( PRINT_ALL, "GL_MAX_ACTIVE_TEXTURES_ARB: %d\n", glConfig.maxActiveTextures );
|
||||
ri.Printf( PRINT_ALL, "\nPIXELFORMAT: color(%d-bits) Z(%d-bit) stencil(%d-bits)\n", glConfig.colorBits, glConfig.depthBits, glConfig.stencilBits );
|
||||
ri.Printf( PRINT_ALL, "MODE: %d, %d x %d %s hz:", r_mode->integer, glConfig.vidWidth, glConfig.vidHeight, fsstrings[r_fullscreen->integer == 1] );
|
||||
if ( glConfig.displayFrequency )
|
||||
|
|
|
@ -48,6 +48,8 @@ typedef struct {
|
|||
void (*SavePerformanceCounters)();
|
||||
|
||||
void (*Set2DWindow)(int x, int y, int w, int h, float left, float right, float bottom, float top, float n, float f);
|
||||
void (*DrawStretchPic) ( float x, float y, float w, float h,
|
||||
float s1, float t1, float s2, float t2, qhandle_t hShader ); // 0 = white
|
||||
void (*DrawTilePic)(float x, float y, float w, float h, qhandle_t hShader);
|
||||
void (*DrawTilePicOffset)(float x, float y, float w, float h, qhandle_t hShader, int offsetX, int offsetY);
|
||||
void (*DrawTrianglePic)(vec2_t* points, vec2_t* texCoords, qhandle_t hShader);
|
||||
|
|
|
@ -48,3 +48,15 @@ typedef enum {
|
|||
viewlensflare = (1 << 1),
|
||||
additive = (1 << 2)
|
||||
} dlighttype_t;
|
||||
|
||||
#if !defined _WIN32
|
||||
|
||||
#define _3DFX_DRIVER_NAME "libMesaVoodooGL.so.3.1"
|
||||
#define OPENGL_DRIVER_NAME "libGL.so"
|
||||
|
||||
#else
|
||||
|
||||
#define _3DFX_DRIVER_NAME "3dfxvgl"
|
||||
#define OPENGL_DRIVER_NAME "opengl32"
|
||||
|
||||
#endif // !defined _WIN32
|
||||
|
|
|
@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define REF_API_VERSION 8
|
||||
#define REF_API_VERSION 14
|
||||
|
||||
//
|
||||
// these are the functions exported by the refresh module
|
||||
|
|
|
@ -145,6 +145,7 @@ void GetRefAPI_new(refimport_t* ri, refexport_t* re)
|
|||
re->newre.R_Model_GetHandle = R_Model_GetHandle;
|
||||
re->newre.DrawStretchRaw = RE_StretchRaw;
|
||||
re->newre.DebugLine = R_DebugLine;
|
||||
re->newre.DrawStretchPic = Draw_StretchPic;
|
||||
re->newre.DrawTilePic = Draw_TilePic;
|
||||
re->newre.DrawTilePicOffset = Draw_TilePicOffset;
|
||||
re->newre.DrawTrianglePic = Draw_TrianglePic;
|
||||
|
|
|
@ -211,6 +211,7 @@ DRAWING
|
|||
|
||||
============================================================
|
||||
*/
|
||||
void Draw_StretchPic(float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader);
|
||||
void Draw_TilePic(float x, float y, float w, float h, qhandle_t hShader);
|
||||
void Draw_TilePicOffset(float x, float y, float w, float h, qhandle_t hShader, int offsetX, int offsetY);
|
||||
void Draw_TrianglePic(const vec2_t vPoints[3], const vec2_t vTexCoords[3], qhandle_t hShader);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue