CRenderer
This commit is contained in:
@@ -12,6 +12,7 @@ RtCharset *debugCharset;
|
||||
#endif
|
||||
|
||||
bool gPS2alphaTest = 1;
|
||||
bool gBackfaceCulling;
|
||||
|
||||
#ifndef FINAL
|
||||
static bool charsetOpen;
|
||||
@@ -116,6 +117,15 @@ DefinedState(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
SetCullMode(uint32 mode)
|
||||
{
|
||||
if(gBackfaceCulling)
|
||||
RwRenderStateSet(rwRENDERSTATECULLMODE, (void*)mode);
|
||||
else
|
||||
RwRenderStateSet(rwRENDERSTATECULLMODE, (void*)rwCULLMODECULLNONE);
|
||||
}
|
||||
|
||||
RwFrame*
|
||||
GetFirstFrameCallback(RwFrame *child, void *data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user