Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
vitaquake3
Commits
3085277f
Commit
3085277f
authored
Mar 15, 2018
by
Rinnegatamante
Browse files
Revert "Revert "2D Rendering setup from vitaQuake.""
This reverts commit
3e0ed066
.
parent
f4d7d80a
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/renderergl1/tr_backend.c
View file @
3085277f
...
...
@@ -40,7 +40,7 @@ static float s_flipMatrix[16] = {
*/
void
GL_Bind
(
image_t
*
image
)
{
int
texnum
;
if
(
!
image
)
{
ri
.
Printf
(
PRINT_WARNING
,
"GL_Bind: NULL image
\n
"
);
texnum
=
tr
.
defaultImage
->
texnum
;
...
...
@@ -678,7 +678,7 @@ void RB_SetGL2D (void) {
qglScissor
(
0
,
0
,
glConfig
.
vidWidth
,
glConfig
.
vidHeight
);
qglMatrixMode
(
GL_PROJECTION
);
qglLoadIdentity
();
qglOrtho
(
0
,
glConfig
.
vidWidth
,
glConfig
.
vidHeight
,
0
,
0
,
1
);
qglOrtho
(
0
,
glConfig
.
vidWidth
,
glConfig
.
vidHeight
,
0
,
-
99999
,
99999
);
qglMatrixMode
(
GL_MODELVIEW
);
qglLoadIdentity
();
...
...
@@ -770,10 +770,10 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *
0
.
5
f
/
cols
,
(
rows
-
0
.
5
f
)
/
rows
};
float
vertices
[]
=
{
x
,
y
,
0
.
0
f
,
x
+
w
,
y
,
0
.
0
f
,
x
+
w
,
y
+
h
,
0
.
0
f
,
x
,
y
+
h
,
0
.
0
f
x
,
y
,
0
.
5
f
,
x
+
w
,
y
,
0
.
5
f
,
x
+
w
,
y
+
h
,
0
.
5
f
,
x
,
y
+
h
,
0
.
5
f
};
qglColor3f
(
tr
.
identityLight
,
tr
.
identityLight
,
tr
.
identityLight
);
...
...
@@ -996,10 +996,10 @@ void RB_ShowImages( void ) {
0
,
0
,
1
,
0
,
1
,
1
,
0
,
1
};
float
vertex
[]
=
{
x
,
y
,
0
.
0
f
,
x
+
w
,
y
,
0
.
0
f
,
x
+
w
,
y
+
h
,
0
.
0
f
,
x
,
y
+
h
,
0
.
0
f
x
,
y
,
0
.
5
f
,
x
+
w
,
y
,
0
.
5
f
,
x
+
w
,
y
+
h
,
0
.
5
f
,
x
,
y
+
h
,
0
.
5
f
};
vglVertexPointer
(
3
,
GL_FLOAT
,
0
,
4
,
vertex
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment