DXGL r204 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r203
|
r204
|
r205
>
Date:
18:48, 5 July 2012
Author:
admin
Status:
new
Tags:
Comment:
Add texture wrap modes
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
/ddraw/glutil.h
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -1473,6 +1473,8 @@
1474
1474
if(device->texstages[i].texture)
1475
1475
device->texstages[i].texture->SetFilter(i,device->texstages[i].glmagfilter,device->texstages[i].glminfilter);
1476
1476
SetTexture(i,device->texstages[i].texture->texture);
1477
+ SetWrap(i,0,device->texstages[i].addressu);
1478
+ SetWrap(i,1,device->texstages[i].addressv);
1477
1479
}
1478
1480
else SetTexture(i,0);
1479
1481
glUniform1i(prog.uniforms[128+i],i);
Index: ddraw/glutil.h
—
—
@@ -27,6 +27,7 @@
28
28
void DeleteFBO();
29
29
void SetTexture(int level,GLuint texture);
30
30
void SetActiveTexture(int level);
31
+void SetWrap(int level, DWORD coord, DWORD address);
31
32
GLenum SetFBO(GLint color, GLint z, bool stencil);
32
33
void SetDepthComp(GLenum comp);
33
34
void DepthWrite(bool enabled);
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version