mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Removed old fixed function code from GFX.
This commit is contained in:
parent
58d2e30af7
commit
5a933c00d3
53 changed files with 98 additions and 1646 deletions
|
|
@ -48,53 +48,6 @@
|
|||
#include "gfx/gfxVertexTypes.h"
|
||||
#endif
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This class is used to interact with an API's fixed function lights. See GFX->setLight
|
||||
class GFXLightInfo
|
||||
{
|
||||
public:
|
||||
enum Type {
|
||||
Point = 0,
|
||||
Spot = 1,
|
||||
Vector = 2,
|
||||
Ambient = 3,
|
||||
};
|
||||
Type mType;
|
||||
|
||||
Point3F mPos;
|
||||
VectorF mDirection;
|
||||
LinearColorF mColor;
|
||||
LinearColorF mAmbient;
|
||||
F32 mRadius;
|
||||
F32 mInnerConeAngle;
|
||||
F32 mOuterConeAngle;
|
||||
|
||||
/// @todo Revisit below (currently unused by fixed function lights)
|
||||
Point3F position;
|
||||
LinearColorF ambient;
|
||||
LinearColorF diffuse;
|
||||
LinearColorF specular;
|
||||
VectorF spotDirection;
|
||||
F32 spotExponent;
|
||||
F32 spotCutoff;
|
||||
F32 constantAttenuation;
|
||||
F32 linearAttenuation;
|
||||
F32 quadraticAttenuation;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Material definition for FF lighting
|
||||
struct GFXLightMaterial
|
||||
{
|
||||
LinearColorF ambient;
|
||||
LinearColorF diffuse;
|
||||
LinearColorF specular;
|
||||
LinearColorF emissive;
|
||||
F32 shininess;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
struct GFXVideoMode
|
||||
|
|
@ -144,7 +97,6 @@ struct GFXVideoMode
|
|||
const String toString() const;
|
||||
};
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
struct GFXPrimitive
|
||||
|
|
@ -195,5 +147,4 @@ struct GFXShaderMacro
|
|||
static void stringize( const Vector<GFXShaderMacro> ¯os, String *outString );
|
||||
};
|
||||
|
||||
|
||||
#endif // _GFXSTRUCTS_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue