DXGL r204 - Code Review

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 @@
14741474 if(device->texstages[i].texture)
14751475 device->texstages[i].texture->SetFilter(i,device->texstages[i].glmagfilter,device->texstages[i].glminfilter);
14761476 SetTexture(i,device->texstages[i].texture->texture);
 1477+ SetWrap(i,0,device->texstages[i].addressu);
 1478+ SetWrap(i,1,device->texstages[i].addressv);
14771479 }
14781480 else SetTexture(i,0);
14791481 glUniform1i(prog.uniforms[128+i],i);
Index: ddraw/glutil.h
@@ -27,6 +27,7 @@
2828 void DeleteFBO();
2929 void SetTexture(int level,GLuint texture);
3030 void SetActiveTexture(int level);
 31+void SetWrap(int level, DWORD coord, DWORD address);
3132 GLenum SetFBO(GLint color, GLint z, bool stencil);
3233 void SetDepthComp(GLenum comp);
3334 void DepthWrite(bool enabled);