|
@@ -794,6 +794,8 @@ void GFXDevice::setCubeTexture( U32 stage, GFXCubemap *texture )
|
|
|
mCurrentTexture[stage] = NULL;
|
|
|
}
|
|
|
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+
|
|
|
inline bool GFXDevice::beginScene()
|
|
|
{
|
|
|
AssertFatal( mCanCurrentlyRender == false, "GFXDevice::beginScene() - The scene has already begun!" );
|
|
@@ -806,8 +808,6 @@ inline bool GFXDevice::beginScene()
|
|
|
return beginSceneInternal();
|
|
|
}
|
|
|
|
|
|
-//------------------------------------------------------------------------------
|
|
|
-
|
|
|
inline void GFXDevice::endScene()
|
|
|
{
|
|
|
AssertFatal( mCanCurrentlyRender == true, "GFXDevice::endScene() - The scene has already ended!" );
|
|
@@ -819,6 +819,22 @@ inline void GFXDevice::endScene()
|
|
|
mDeviceStatistics.exportToConsole();
|
|
|
}
|
|
|
|
|
|
+inline void GFXDevice::beginField()
|
|
|
+{
|
|
|
+ AssertFatal( mCanCurrentlyRender == true, "GFXDevice::beginField() - The scene has not yet begun!" );
|
|
|
+
|
|
|
+ // Send the start of field signal.
|
|
|
+ getDeviceEventSignal().trigger( GFXDevice::deStartOfField );
|
|
|
+}
|
|
|
+
|
|
|
+inline void GFXDevice::endField()
|
|
|
+{
|
|
|
+ AssertFatal( mCanCurrentlyRender == true, "GFXDevice::endField() - The scene has not yet begun!" );
|
|
|
+
|
|
|
+ // Send the end of field signal.
|
|
|
+ getDeviceEventSignal().trigger( GFXDevice::deEndOfField );
|
|
|
+}
|
|
|
+
|
|
|
void GFXDevice::setViewport( const RectI &inRect )
|
|
|
{
|
|
|
// Clip the rect against the renderable size.
|