mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: dx2: Display transform rotation (WIP)
This commit is contained in:
@@ -47,22 +47,17 @@ static const char *R_GetConfigName( void )
|
||||
|
||||
static qboolean R_SetDisplayTransform( ref_screen_rotation_t rotate, int offset_x, int offset_y, float scale_x, float scale_y )
|
||||
{
|
||||
return false;
|
||||
|
||||
qboolean ret = true;
|
||||
if (rotate > 0)
|
||||
{
|
||||
gEngfuncs.Con_Printf("rotation transform not supported\n");
|
||||
ret = false;
|
||||
}
|
||||
|
||||
if (offset_x || offset_y)
|
||||
tr.rotation = rotate;
|
||||
|
||||
if( offset_x || offset_y )
|
||||
{
|
||||
gEngfuncs.Con_Printf("offset transform not supported\n");
|
||||
ret = false;
|
||||
}
|
||||
|
||||
if (scale_x != 1.0f || scale_y != 1.0f)
|
||||
if( scale_x != 1.0f || scale_y != 1.0f )
|
||||
{
|
||||
gEngfuncs.Con_Printf("scale transform not supported\n");
|
||||
ret = false;
|
||||
|
||||
@@ -186,6 +186,7 @@ typedef struct
|
||||
cl_entity_t *entities;
|
||||
int max_entities;
|
||||
|
||||
ref_screen_rotation_t rotation;
|
||||
} dx_globals_t;
|
||||
|
||||
struct dx_context_s
|
||||
|
||||
Reference in New Issue
Block a user