~janisozaur/+junk/desmume-bzr-tst

« back to all changes in this revision

Viewing changes to desmume/src/gfx3d.cpp

  • Committer: zeromus
  • Date: 2010-07-02 17:56:05 UTC
  • Revision ID: svn-v4:5577840e-afb3-4e59-9ef3-2b7f898b1952:trunk:3695
win32: add an option to disable texturing, for debugging and educational purposes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1613
1613
{
1614
1614
        gfx3d.state.invalidateToon = true;
1615
1615
        gfx3d.state.u16ToonTable[offset] = val;
 
1616
        //printf("toon %d set to %04X\n",offset,val);
1616
1617
}
1617
1618
 
1618
1619
void gfx3d_UpdateToonTable(u8 offset, u32 val)
1621
1622
        gfx3d.state.invalidateToon = true;
1622
1623
        gfx3d.state.u16ToonTable[offset] = val & 0xFFFF;
1623
1624
        gfx3d.state.u16ToonTable[offset+1] = val >> 16;
 
1625
        //printf("toon %d set to %04X\n",offset,gfx3d.state.u16ToonTable[offset]);
 
1626
        //printf("toon %d set to %04X\n",offset+1,gfx3d.state.u16ToonTable[offset+1]);
1624
1627
}
1625
1628
 
1626
1629
s32 gfx3d_GetClipMatrix (unsigned int index)
2030
2033
        gfx3d.state.wbuffer = BIT1(gfx3d.state.activeFlushCommand);
2031
2034
 
2032
2035
        gfx3d.renderState = gfx3d.state;
 
2036
 
 
2037
        if(!CommonSettings.GFX3D_Texture)
 
2038
                gfx3d.renderState.enableTexturing = false;
2033
2039
        
2034
2040
        gfx3d.state.activeFlushCommand = gfx3d.state.pendingFlushCommand;
2035
2041