mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fixed parameter of Draw_StretchPic2
This commit is contained in:
parent
d2737f2b40
commit
c1ee0332e3
2 changed files with 8 additions and 8 deletions
|
@ -96,7 +96,7 @@ void Draw_StretchPic(float x, float y, float w, float h, float s1, float t1, flo
|
|||
Draw_StretchPic2
|
||||
================
|
||||
*/
|
||||
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float a1, float sx, float sy, qhandle_t hShader) {
|
||||
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float sx, float sy, qhandle_t hShader) {
|
||||
shader_t* shader;
|
||||
float halfWidth, halfHeight;
|
||||
float scaledWidth1, scaledHeight1;
|
||||
|
@ -130,14 +130,14 @@ void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, fl
|
|||
RB_Texcoord2f(s1, t1);
|
||||
RB_Vertex3f(x + halfWidth - (scaledWidth2 + -scaledHeight2), y + halfWidth - scaledHeight1 - scaledWidth1, 0);
|
||||
|
||||
RB_Texcoord2f(s2, t1);
|
||||
RB_Vertex3f(scaledWidth2 - -scaledHeight2 + x * halfWidth, scaledWidth1 - scaledHeight1 + y * halfWidth, 0);
|
||||
RB_Texcoord2f(t2, t1);
|
||||
RB_Vertex3f(scaledWidth2 - -scaledHeight2 + x + halfWidth, scaledWidth1 - scaledHeight1 + y + halfWidth, 0);
|
||||
|
||||
RB_Texcoord2f(s1, t2);
|
||||
RB_Vertex3f(x+ halfWidth - (scaledWidth2 + scaledHeight2), scaledHeight1 - scaledWidth1 + y * halfWidth, 0);
|
||||
RB_Texcoord2f(s1, s2);
|
||||
RB_Vertex3f(x+ halfWidth - (scaledWidth2 + scaledHeight2), scaledHeight1 - scaledWidth1 + y + halfWidth, 0);
|
||||
|
||||
RB_Texcoord2f(s2, t2);
|
||||
RB_Vertex3f(scaledWidth2 - scaledHeight2 + x * halfWidth, scaledWidth1 + scaledHeight1 + y * halfWidth, 0);
|
||||
RB_Texcoord2f(t2, s2);
|
||||
RB_Vertex3f(scaledWidth2 - scaledHeight2 + x + halfWidth, scaledWidth1 + scaledHeight1 + y + halfWidth, 0);
|
||||
|
||||
RB_StreamEnd();
|
||||
}
|
||||
|
|
|
@ -1688,7 +1688,7 @@ void GL_Cull( int cullType );
|
|||
|
||||
void Draw_SetColor(const vec4_t rgba);
|
||||
void Draw_StretchPic(float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader);
|
||||
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float a1, float sx, float sy, qhandle_t hShader);
|
||||
void Draw_StretchPic2(float x, float y, float w, float h, float s1, float t1, float s2, float t2, float sx, float sy, 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