Fix for DrawStretchRaw and const params

This commit is contained in:
smallmodel 2023-07-17 20:44:09 +02:00
parent 52f60e647d
commit 2866bfdd04
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
5 changed files with 12 additions and 12 deletions

View file

@ -200,7 +200,7 @@ functions exported to the main executable
const vec3_t *points,
const vec3_t projection,
int maxPoints,
const vec3_t pointBuffer,
vec3_t pointBuffer,
int maxFragments,
markFragment_t *fragmentBuffer,
float fRadiusSquared
@ -213,7 +213,7 @@ functions exported to the main executable
const vec3_t *points,
const vec3_t projection,
int maxPoints,
const vec3_t pointBuffer,
vec3_t pointBuffer,
int maxFragments,
markFragment_t *fragmentBuffer,
float fRadiusSquared

View file

@ -1583,13 +1583,13 @@ void CIN_DrawCinematic (int handle) {
CIN_ResampleCinematic(handle, buf2);
re.DrawStretchRaw( x, y, w, h, 256, 256, (byte *)buf2, 0, qfalse);
re.DrawStretchRaw( x, y, w, h, 256, 256, 0, (byte *)buf2);
cinTable[handle].dirty = qfalse;
Hunk_FreeTempMemory(buf2);
return;
}
re.DrawStretchRaw( x, y, w, h, cinTable[handle].drawX, cinTable[handle].drawY, buf, 0, qfalse);
re.DrawStretchRaw( x, y, w, h, cinTable[handle].drawX, cinTable[handle].drawY, 0, buf);
cinTable[handle].dirty = qfalse;
}

View file

@ -144,13 +144,13 @@ void R_GetLightingGridValueFast(const vec3_t vPos, vec3_t vLight)
VectorSet(vLight, 1.f, 1.f, 1.f);
}
void R_GetLightingForDecal(vec3_t vLight, vec3_t vFacing, vec3_t vOrigin)
void R_GetLightingForDecal(vec3_t vLight, const vec3_t vFacing, const vec3_t vOrigin)
{
// FIXME: unimplemented
VectorSet(vLight, 1.f, 1.f, 1.f);
}
void R_GetLightingForSmoke(vec3_t vLight, vec3_t vOrigin)
void R_GetLightingForSmoke(vec3_t vLight, const vec3_t vOrigin)
{
// FIXME: unimplemented
VectorSet(vLight, 1.f, 1.f, 1.f);

View file

@ -1901,8 +1901,8 @@ LIGHTS
void R_DlightBmodel( bmodel_t *bmodel );
void R_GetLightingGridValue(const vec3_t vPos, vec3_t vLight);
void R_GetLightingForDecal(vec3_t vLight, vec3_t vFacing, vec3_t vOrigin);
void R_GetLightingForSmoke(vec3_t vLight, vec3_t vOrigin);
void R_GetLightingForDecal(vec3_t vLight, const vec3_t vFacing, const vec3_t vOrigin);
void R_GetLightingForSmoke(vec3_t vLight, const vec3_t vOrigin);
void R_SetupEntityLighting( const trRefdef_t *refdef, trRefEntity_t *ent );
void RB_SetupEntityGridLighting();
void RB_SetupStaticModelGridLighting(trRefdef_t* refdef, cStaticModelUnpacked_t* ent, const vec3_t lightOrigin);
@ -1973,7 +1973,7 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
int maxPoints, vec3_t pointBuffer, int maxFragments, markFragment_t *fragmentBuffer, float fRadiusSquared);
int R_MarkFragmentsForInlineModel(clipHandle_t bmodel, const vec3_t vAngles, const vec3_t vOrigin, int numPoints,
const vec3_t* points, const vec3_t projection, int maxPoints, const vec3_t pointBuffer,
const vec3_t* points, const vec3_t projection, int maxPoints, vec3_t pointBuffer,
int maxFragments, markFragment_t* fragmentBuffer, float fRadiusSquared);

View file

@ -80,7 +80,7 @@ typedef struct {
void (*SetColor)( const float *rgba ); // NULL = 1,1,1,1
// Draw images for cinematic rendering, pass as 32 bit rgba
void (*DrawStretchRaw) (int x, int y, int w, int h, int cols, int rows, const byte *data, int client, qboolean dirty);
void (*DrawStretchRaw) (int x, int y, int w, int h, int cols, int rows, int components, const byte* data);
void (*UploadCinematic) (int w, int h, int cols, int rows, const byte *data, int client, qboolean dirty);
void (*BeginFrame)( stereoFrame_t stereoFrame );
@ -90,7 +90,7 @@ typedef struct {
int (*MarkFragments)( int numPoints, const vec3_t *points, const vec3_t projection,
int maxPoints, const vec3_t pointBuffer, int maxFragments, markFragment_t *fragmentBuffer, float fRadiusSquared );
int maxPoints, vec3_t pointBuffer, int maxFragments, markFragment_t *fragmentBuffer, float fRadiusSquared );
int (*LerpTag)( orientation_t *tag, qhandle_t model, int startFrame, int endFrame,
float frac, const char *tagName );
@ -140,7 +140,7 @@ typedef struct {
void (*DrawLineLoop)(const vec2_t* points, int count, int stippleFactor, int stippleMask);
int (*MarkFragmentsForInlineModel)(clipHandle_t bmodel, const vec3_t vAngles, const vec3_t vOrigin, int numPoints,
const vec3_t* points, const vec3_t projection, int maxPoints, const vec3_t pointBuffer,
const vec3_t* points, const vec3_t projection, int maxPoints, vec3_t pointBuffer,
int maxFragments, markFragment_t* fragmentBuffer, float fRadiusSquared);
void (*GetInlineModelBounds)(int index, vec3_t mins, vec3_t maxs);