7832
|
1 |
--- 1.1.0.4/source/src/protos.h Sun Nov 14 19:46:24 2010
|
|
2 |
+++ 1.1.0.4/source/src/protos.h Sun Oct 23 19:45:15 2011
|
|
3 |
@@ -243,8 +243,8 @@
|
2142
|
4 |
extern void dot(int x, int y, float z);
|
|
5 |
extern void linestyle(float width, int r, int g, int b);
|
|
6 |
extern void blendbox(int x1, int y1, int x2, int y2, bool border, int tex = -1, color *c = NULL);
|
|
7 |
-extern void quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy = 0);
|
|
8 |
-extern void quad(GLuint tex, vec &c1, vec &c2, float tx, float ty, float tsx, float tsy);
|
|
9 |
+extern void a_quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy = 0);
|
|
10 |
+extern void a_quad(GLuint tex, vec &c1, vec &c2, float tx, float ty, float tsx, float tsy);
|
|
11 |
extern void circle(GLuint tex, float x, float y, float r, float tx, float ty, float tr, int subdiv = 32);
|
|
12 |
extern void setperspective(float fovy, float aspect, float nearplane, float farplane);
|
|
13 |
extern void sethudgunperspective(bool on);
|
7832
|
14 |
--- 1.1.0.4/source/src/rendergl.cpp Sun Nov 14 19:46:24 2010
|
|
15 |
+++ 1.1.0.4/source/src/rendergl.cpp Sun Oct 23 19:45:34 2011
|
|
16 |
@@ -212,7 +212,7 @@
|
2142
|
17 |
xtraverts += 4;
|
|
18 |
}
|
|
19 |
|
|
20 |
-void quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy)
|
|
21 |
+void a_quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy)
|
|
22 |
{
|
|
23 |
if(!tsy) tsy = tsx;
|
|
24 |
glBindTexture(GL_TEXTURE_2D, tex);
|
7832
|
25 |
@@ -225,7 +225,7 @@
|
2142
|
26 |
xtraverts += 4;
|
|
27 |
}
|
|
28 |
|
|
29 |
-void quad(GLuint tex, const vec &c1, const vec &c2, float tx, float ty, float tsx, float tsy)
|
|
30 |
+void a_quad(GLuint tex, const vec &c1, const vec &c2, float tx, float ty, float tsx, float tsy)
|
|
31 |
{
|
|
32 |
if(!tsy) tsy = tsx;
|
|
33 |
glBindTexture(GL_TEXTURE_2D, tex);
|
7832
|
34 |
@@ -378,7 +378,7 @@
|
2142
|
35 |
static Texture *tex = NULL;
|
|
36 |
if(!tex) tex = textureload("packages/misc/com.png");
|
|
37 |
float s = aboveheadiconsize/100.0f;
|
|
38 |
- quad(tex->id, vec(s/2.0f, 0.0f, s), vec(s/-2.0f, 0.0f, 0.0f), 0.0f, 0.0f, 1.0f, 1.0f);
|
|
39 |
+ a_quad(tex->id, vec(s/2.0f, 0.0f, s), vec(s/-2.0f, 0.0f, 0.0f), 0.0f, 0.0f, 1.0f, 1.0f);
|
|
40 |
glDisable(GL_BLEND);
|
|
41 |
glPopMatrix();
|
|
42 |
}
|
7832
|
43 |
--- 1.1.0.4/source/src/renderhud.cpp Sun Nov 14 19:46:24 2010
|
|
44 |
+++ 1.1.0.4/source/src/renderhud.cpp Sun Oct 23 19:45:43 2011
|
|
45 |
@@ -4,7 +4,7 @@
|
301
|
46 |
|
|
47 |
void drawicon(Texture *tex, float x, float y, float s, int col, int row, float ts)
|
|
48 |
{
|
|
49 |
- if(tex && tex->xs == tex->ys) quad(tex->id, x, y, s, ts*col, ts*row, ts);
|
|
50 |
+ if(tex && tex->xs == tex->ys) a_quad(tex->id, x, y, s, ts*col, ts*row, ts);
|
|
51 |
}
|
|
52 |
|
7832
|
53 |
inline void turn_on_transparency()
|
|
54 |
@@ -439,7 +439,7 @@
|
|
55 |
}
|
|
56 |
glTranslatef(centerpos.x - halfviewsize, centerpos.y - halfviewsize , 0);
|
301
|
57 |
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_COLOR);
|
7832
|
58 |
- quad(minimaptex, 0, 0, radarviewsize, 0.0f, 0.0f, 1.0f);
|
|
59 |
+ a_quad(minimaptex, 0, 0, radarviewsize, 0.0f, 0.0f, 1.0f);
|
301
|
60 |
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
|
61 |
glDisable(GL_BLEND);
|
7832
|
62 |
vec mdd(mapdims[0], mapdims[1], 0);
|
|
63 |
@@ -600,7 +600,7 @@
|
301
|
64 |
glColor3f(1, 1, 1);
|
2142
|
65 |
static Texture *bordertex = NULL;
|
|
66 |
if(!bordertex) bordertex = textureload("packages/misc/compass-base.png", 3);
|
7832
|
67 |
- quad(bordertex->id, centerpos.x-halfviewsize-16, centerpos.y-halfviewsize-16, radarviewsize+32, 0, 0, 1, 1);
|
|
68 |
+ a_quad(bordertex->id, centerpos.x-halfviewsize-16, centerpos.y-halfviewsize-16, radarviewsize+32, 0, 0, 1, 1);
|
2142
|
69 |
if(!hidecompass)
|
|
70 |
{
|
|
71 |
static Texture *compasstex = NULL;
|
7832
|
72 |
@@ -608,7 +608,7 @@
|
2142
|
73 |
glPushMatrix();
|
7832
|
74 |
glTranslatef(centerpos.x, centerpos.y, 0);
|
2142
|
75 |
glRotatef(-camera1->yaw, 0, 0, 1);
|
7832
|
76 |
- quad(compasstex->id, -halfviewsize-8, -halfviewsize-8, radarviewsize+16, 0, 0, 1, 1);
|
|
77 |
+ a_quad(compasstex->id, -halfviewsize-8, -halfviewsize-8, radarviewsize+16, 0, 0, 1, 1);
|
2142
|
78 |
glPopMatrix();
|
|
79 |
}
|
301
|
80 |
}
|
7832
|
81 |
@@ -620,7 +620,7 @@
|
301
|
82 |
glColor3f(1, 1, 1);
|
|
83 |
static Texture *icons = NULL;
|
2142
|
84 |
if(!icons) icons = textureload("packages/misc/teamicons.png", 3);
|
7832
|
85 |
- quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_base(spect ? players[player1->followplayercn]->team : player1->team) ? 0.5f : 0, 0, 0.49f, 1.0f);
|
|
86 |
+ a_quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_base(spect ? players[player1->followplayercn]->team : player1->team) ? 0.5f : 0, 0, 0.49f, 1.0f);
|
301
|
87 |
}
|
|
88 |
|
2142
|
89 |
int damageblendmillis = 0;
|
7832
|
90 |
@@ -1007,7 +1007,7 @@
|
301
|
91 |
loopi(fmt ? 1 : 2)
|
|
92 |
{
|
|
93 |
glClear(GL_COLOR_BUFFER_BIT);
|
|
94 |
- quad(logo->id, (VIRTW-VIRTH)/2, 0, VIRTH, 0, 0, 1);
|
|
95 |
+ a_quad(logo->id, (VIRTW-VIRTH)/2, 0, VIRTH, 0, 0, 1);
|
|
96 |
if(fmt)
|
|
97 |
{
|
|
98 |
glEnable(GL_BLEND);
|