mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Add OpenGL support.
This commit is contained in:
parent
c354f59b72
commit
dd08fd2e7d
55 changed files with 2957 additions and 802 deletions
|
|
@ -35,6 +35,8 @@
|
|||
#include "math/util/sphereMesh.h"
|
||||
#include "console/consoleTypes.h"
|
||||
#include "scene/sceneRenderState.h"
|
||||
#include "gfx/gfxCardProfile.h"
|
||||
#include "gfx/gfxTextureProfile.h"
|
||||
|
||||
|
||||
ImplementEnumType( ShadowType,
|
||||
|
|
@ -81,6 +83,9 @@ bool AdvancedLightManager::isCompatible() const
|
|||
return false;
|
||||
|
||||
// TODO: Test for the necessary texture formats!
|
||||
bool autoMips;
|
||||
if(!GFX->getCardProfiler()->checkFormat(GFXFormatR16F, &GFXDefaultRenderTargetProfile, autoMips))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue