70 class CallbackMethodCallerBase;
 
   71 class GlsResourceFilter;
 
   72 class DisplayObjectEditor;
 
   76 class GlsGloFileAttribute;
 
   81 GLS_EXPORT 
void InitializeLibrary( 
const char* unlockString = NULL, 
const DisplayFrame* frame = NULL, 
bool checkLicense = 
false );
 
   86 GLS_EXPORT 
const char* LicenseUnlockedBy();
 
   88 typedef DisplayObject*                 DisplayObjectPtr;
 
   89 typedef DynamicArray<DisplayObjectPtr> DisplayObjectArray;
 
   90 typedef DynamicArray<int>              DynamicIntArray;
 
  101     friend class DisplayObjectEditor;
 
  117     GLS_EXPORT 
DisplayObject( 
const DisplayObject& 
object, 
const bool generateNames );
 
  133         GLS_ATTRIBUTES_BASIC       = 1,
 
  134         GLS_ATTRIBUTES_DYNAMIC     = 2,
 
  135         GLS_ATTRIBUTES_APPEARANCE  = 4,
 
  136         GLS_ATTRIBUTES_GEOMETRY    = 8,
 
  137         GLS_ATTRIBUTES_SPECIALIZED = 16,
 
  138         GLS_ATTRIBUTES_ALL         = ~0,
 
  139         GLS_ATTRIBUTES_NONE        = 0
 
  154     virtual GLS_EXPORT 
void AlphaMode( 
int mode );
 
  160     virtual GLS_EXPORT 
int AlphaMode( 
void );
 
  165     virtual GLS_EXPORT 
bool AntiAlias( 
void );
 
  170     virtual GLS_EXPORT 
void AntiAlias( 
bool alias );
 
  186     virtual GLS_EXPORT 
void SetBlendColor( 
const GlsColor& color );
 
  201     GLS_EXPORT 
void GetBlendColor( 
unsigned char& r, 
unsigned char& g, 
unsigned char& b, 
unsigned char& a );
 
  221     GLS_EXPORT 
void SetBlendColor( 
unsigned char r, 
unsigned char g, 
unsigned char b, 
unsigned char a );
 
  229     virtual GLS_EXPORT 
bool Blinking( 
void );
 
  234     virtual GLS_EXPORT 
void Blinking( 
const bool blink );
 
  239     virtual GLS_EXPORT 
float BlinkRate( 
void );
 
  244     virtual GLS_EXPORT 
void BlinkRate( 
const float rate );
 
  288     virtual GLS_EXPORT 
void Calculate( 
double time );
 
  334     virtual DisplayObject* 
CloneObject( 
bool generateNames = 
false ) = 0;
 
  345     GLS_EXPORT 
void GetColor( 
unsigned char c4[] );
 
  354     GLS_EXPORT 
void GetColor( 
unsigned char& r, 
unsigned char& g, 
unsigned char& b, 
unsigned char& a );
 
  379     virtual GLS_EXPORT 
void CopyGeometry( DisplayObject* src );
 
  420     inline bool Culled()
 const { 
return _culled; }
 
  421     inline void Culled( 
bool val ) { _culled = val; }
 
  468     void GLS_EXPORT 
DcsMatrix( 
const GlsMatrixType& matrix );
 
  473     virtual GLS_EXPORT 
void DeleteVertex( 
unsigned int index );
 
  478     virtual GLS_EXPORT 
int DepthTest( 
void );
 
  483     virtual GLS_EXPORT 
void DepthTest( 
unsigned char zbuf );
 
  487     virtual void Draw( 
void ) = 0;
 
  521     virtual GLS_EXPORT 
void DynamicRotate( 
float x, 
float y, 
float z );
 
  534     virtual GLS_EXPORT 
float DynamicRotation( 
int axis );
 
  535     virtual GLS_EXPORT 
Vector DynamicRotation();
 
  548     virtual GLS_EXPORT 
void DynamicScale( 
float x, 
float y, 
float z );
 
  564     virtual GLS_EXPORT 
void DynamicTranslate( 
float x, 
float y, 
float z, 
bool relative = 
false );
 
  585     virtual GLS_EXPORT 
void DynamicTranslateAxis( 
float amount, 
int axis, 
bool relative );
 
  587     virtual GLS_EXPORT 
void DynamicTranslate( 
float amount, 
int axis, 
bool relative = 
false );
 
  604     GLS_EXPORT DisplayObjectEditor* 
Editor();
 
  610     GLS_EXPORT 
const DisplayObjectEditor* 
Editor() 
const;
 
  616     GLS_EXPORT 
void Editor( DisplayObjectEditor* editor );
 
  628     virtual GLS_EXPORT 
void GetExtents( 
float& x, 
float& y, 
float& z, 
float& x1, 
float& y1, 
float& z1 );
 
  643     GLS_EXPORT 
void GetFillColor( 
unsigned char& r, 
unsigned char& g,
 
  644         unsigned char& b, 
unsigned char& a );
 
  700     virtual GLS_EXPORT 
bool Hit( 
float x, 
float y, 
float z, 
float scale, 
const Vector& directionVector, 
Vector* collisionPoint );
 
  721     virtual GLS_EXPORT 
bool HitUtil( 
float x, 
float y, 
float z, 
float scale, 
Vertex* vertices, 
unsigned int vertex_cnt, 
const Vector& directionVector, 
Vector* collisionPoint );
 
  727     virtual GLS_EXPORT 
void InsertVertex( 
unsigned int index );
 
  770     virtual GLS_EXPORT 
float LineWidth( 
void );
 
  775     virtual GLS_EXPORT 
void LineWidth( 
float width );
 
  792     virtual GLS_EXPORT 
void Location( 
float x, 
float y, 
float z );
 
  804     virtual GLS_EXPORT 
void GetLocation( 
float& x, 
float& y, 
float& z );
 
  851     virtual GLS_EXPORT 
void SetNormals( 
unsigned int nPoints, 
Vector* vertices );
 
  857     GLS_EXPORT 
void VaSetNormals( 
unsigned int nPoints, ... );
 
  928     virtual GLS_EXPORT DisplayObject* 
Pick3D( 
const Vector& winLoc,
 
  929         const Vector&                                       logicalCoords,
 
  931         const Vector&                                       directionVector,
 
  939     inline unsigned char Pickable() { 
return _pickable; }
 
  945     virtual GLS_EXPORT 
void Pickable( 
unsigned char pick );
 
  951     virtual GLS_EXPORT 
int PolygonOffset( 
void ) 
const;
 
  957     virtual GLS_EXPORT 
void PolygonOffset( 
const int offset );
 
 1002     virtual GLS_EXPORT 
void ReallocateVertices( 
unsigned int numVertices, 
bool initializeNew, 
bool copyOld );
 
 1010     virtual GLS_EXPORT 
float RelativeAngle( 
const float x, 
const float y );
 
 1072     virtual GLS_EXPORT 
void RotationPoint( 
float x, 
float y, 
float z );
 
 1085     virtual GLS_EXPORT 
void Rotate( 
float angle, 
int axis = 
Z_AXIS );
 
 1093     virtual GLS_EXPORT 
void Rotate( 
const Vector& origin, 
float angle, 
int axis = 
Z_AXIS );
 
 1101     virtual GLS_EXPORT 
void Rotate( 
const Vector& orig, 
float angle, 
const Vector& axis );
 
 1112     inline void Scale( 
int handleBar, 
float px, 
float py, 
Vertex* anchor = NULL )
 
 1114         Scale( px, py, 1.0f, anchor, handleBar );
 
 1127     virtual GLS_EXPORT 
void Scale( 
float px, 
float py, 
float pz, 
Vertex* anchor, 
int handleBar = 0 );
 
 1134     GLS_EXPORT 
void Set( 
int spec, ... );
 
 1163 #if !defined( GLES ) 
 1182     virtual GLS_EXPORT 
int Shading( 
void );
 
 1188     virtual GLS_EXPORT 
void Shading( 
const int shading );
 
 1207     virtual GLS_EXPORT 
void SetTexCoords( 
unsigned int nPoints, 
Vector* new_tex_coord, 
bool isVectorArray = 
true );
 
 1256     virtual GLS_EXPORT 
void TextureIndex( 
int textureIndex );
 
 1320     virtual GLS_EXPORT 
void Translate( 
float tr[] );
 
 1327     virtual GLS_EXPORT 
void Translate( 
float x, 
float y, 
float z );
 
 1360     virtual GLS_EXPORT 
void SetVertexColor( 
unsigned int vertex, 
unsigned char CurrentFillColor[] );
 
 1392     virtual GLS_EXPORT 
void VaListSetVertices( 
unsigned int nPoints, va_list args );
 
 1399     virtual GLS_EXPORT 
void VaListSetNormals( 
unsigned int nPoints, va_list args );
 
 1425     virtual GLS_EXPORT 
void Visibility( 
const bool vis );
 
 1469         Vector*               directionVector   = NULL, 
 
 1483         const Vector*        directionVector,
 
 1505     GLS_EXPORT 
void GeometryRefresh();
 
 1510     bool _geometryRefresh; 
 
 1512     GLS_EXPORT 
void ApplyTextureMinMagSettings();
 
 1513     GLS_EXPORT 
void ApplyTextureEnvModeSettings();
 
 1514     GLS_EXPORT 
bool SetupTextureIsNeeded();
 
 1542     bool _needCalcDrawMatrix; 
 
 1606     virtual GLS_EXPORT 
int ColorMaterialMode( 
void );
 
 1653     inline void LastDrawMatrixLocation( 
const Vertex& loc ) { _lastDrawMatrixLocation = loc; }
 
 1656     inline const Vertex& LastDrawMatrixLocation() { 
return _lastDrawMatrixLocation; }
 
 1669     GLS_EXPORT 
void PickSetup( 
float x, 
float y, 
float z, 
Vertex* vertices, 
unsigned int vertex_cnt, 
const Vector& directionVector );
 
 1730     GLS_EXPORT 
virtual void SetValue( 
int spec, va_list& args );
 
 1733     void CopyGeometryInternal( 
const DisplayObject* src );
 
 1734     void CopyPropertiesInternal( 
const DisplayObject* src );
 
 1735     void CopyHierarchyPropertiesInternal( 
const DisplayObject* src, 
bool copyName );
 
 1739     Vector _boundingVolumeCenter; 
 
 1741     float _boundingVolumeRadius; 
 
 1748     float _dynamicTranslate[ 3 ]; 
 
 1753     float _dynamicScale[ 3 ]; 
 
 1757     char* _instanceName; 
 
 1761     Vertex _lastDrawMatrixLocation; 
 
 1763     bool _lightingEnabled; 
 
 1765     bool _needCalculate; 
 
 1771     Group* _parentGroup; 
 
 1775     unsigned char _pickable; 
 
 1777     float _rotation[ 3 ]; 
 
 1789     GLS_EXPORT 
void DisplayColorMaterialModeError( 
const int mode );
 
 1790     GLS_EXPORT 
int  DisplayColorMaterialModeError();
 
 1792     void CommonConstructorInit( 
float x, 
float y, 
float z );
 
 1795     void OnDCSMatrixChanged();
 
 1798     void OnVerticesChanged();
 
 1801     void OnTextureCoordsChanged();
 
 1804     DisplayObject& operator=( 
const DisplayObject& that ); 
 
GlsMatrixType * _drawMatrix
Definition: display.h:1537
float Y(void) const 
Definition: display.h:810
GlsColor _textureBlendColor
Definition: display.h:1576
bool InsideVertexExtents(float x, float y, unsigned int nVerts, Vertex *verts, float tolerance)
Definition: display_frame.h:85
void RestoreLighting(void)
virtual void CalculateMatrices(const OpenGLMatrices &newMatrices)
void * UserData(void) const 
Definition: display.h:1349
void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Definition: display.h:374
void SetTexCoords(unsigned int nPoints, Vertex *new_tex_coord)
Definition: display.h:1213
bool GetTexturePointTransformationMatrix(GlsMatrixType &world2tex)
Vector * _normals
Definition: display.h:1556
virtual const Vertex & Location(void) const 
DistiAttribDict & Attributes()
Definition: display.h:180
virtual void CopyGeometry(DisplayObject *src)
virtual void UpdateBoundingVolume(void)
CallbackMethodCallerBase * CallbackCaller() const 
Definition: display.h:311
virtual void Calculate(double time)
virtual float BlinkRate(void)
virtual void SetVertices(unsigned int nPoints, Vertex *vertices)
void VaSetTexCoords(unsigned int nPoints,...)
void SetupPolyDrawStyle(void)
virtual void SetVertexColor(unsigned int vertex, unsigned char CurrentFillColor[])
Vertex _location
Definition: display.h:1550
GlsMatrixType & DcsMatrix()
Definition: display.h:462
virtual void CalculateParentBoundingBox(void)
void SetFillColor(unsigned char c4[])
Definition: display.h:670
Definition: gls_state_manager_es20_interface.h:65
virtual void SetBlendColor(const GlsColor &color)
virtual void GetRotationPoint(Vertex &v)
Definition: dynamic_array.h:62
bool BoundingVolumeHit(const Vector &start, const Vector &direction)
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
GlsMatrixType * ModelMatrix()
Class to contain current OpenGL view, projection and draw matrices. 
Definition: util.h:301
bool SetupLineStyle(void)
void CalculateCollisionPoint(const Vector &pickLoc, const Vector &directionVector, Vector *collisionPoint)
Defines a base class which editor objects can derive. 
virtual int TextureMagnificationFilter(void)
float MagnitudeSquared() const 
Definition: vertex.h:335
virtual Vertex WorldVertex(unsigned int i)
virtual void PreDraw(const OpenGLMatrices ¤t, Culler &culler)
virtual float LineWidth(void)
void ApplyTextureSettings(int textureIndex=-1)
virtual int AlphaMode(void)
virtual void CalculateTextureCoordinates(void)
int GetApplicableTextureIndex()
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
The GlsMatrixAffine class. 
unsigned char _lineStippleMultiplier
Definition: display.h:1544
virtual void CopyProperties(DisplayObject *src)
unsigned short _lineStipplePattern
Definition: display.h:1546
bool _visible
Definition: display.h:1604
DisplayFrame * Parent(void) const 
Definition: display.h:898
virtual void VaListSetTexCoords(unsigned int nPoints, va_list args)
unsigned char _textureMagFilter
Definition: display.h:1582
virtual void SetValue(int spec, va_list &args)
unsigned char _textureMinFilter
Definition: display.h:1584
bool Visible(void) const 
Definition: display.h:1415
virtual void SetTexCoords(unsigned int nPoints, Vector *new_tex_coord, bool isVectorArray=true)
bool Visibility(void) const 
Definition: display.h:1420
virtual void GetResources(std::ostream &outstr, GlsResourceFilter *filter=NULL)
virtual void CopyHierarchyProperties(DisplayObject *src, bool copyName)
Definition: gls_state_manager_interface.h:67
Vector * Normals()
Definition: display.h:845
virtual int MaterialIndex()
bool ApplyDynamicRotation(void)
bool CullTest(const GlsMatrixType *matrix, const Culler &culler)
Definition: display.h:427
virtual float ObjectHeight(void)
static void SetManualBlinkElapsedTime(double elapsedTime)
float _lineWidth
Definition: display.h:1548
DisplayObject(float x, float y, float z)
virtual bool HitUtil(float x, float y, float z, float scale, Vertex *vertices, unsigned int vertex_cnt, const Vector &directionVector, Vector *collisionPoint)
float Z(void) const 
Definition: display.h:813
weak reference and related classes 
The disti::GlsStateManager factory class. Creates an instance of a state manager that manages the GL ...
virtual DisplayObject * Pick3D(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices)
bool SphereOutsideFrustum(const Vector ¢er, const float radius) const 
Definition: cull.h:96
virtual void VaListSetNormals(unsigned int nPoints, va_list args)
static void UseManualBlinkElapsedTime(bool useManualTime)
Vector _texturePoints[4]
Definition: display.h:1588
GlsMatrixType * _projMatrix
Definition: display.h:1569
const Vector & BoundingVolumeCenter() const 
Definition: display.h:259
Definition: gls_glo_file.h:982
void SetupDepthTest(void)
void SetColor(unsigned char c4[])
Definition: display.h:365
virtual Vector WorldRotationPoint(void)
virtual void Translate(float tr[])
virtual void Invalidate()=0
unsigned char _polygonMode
Definition: display.h:1565
float _blinkRate
Definition: display.h:1526
void DynamicRotate(float angle, int axis)
void InvalidatePainter()
Definition: display.h:1717
virtual void ReallocateVertices(unsigned int numVertices, bool initializeNew, bool copyOld)
Definition: gls_glo_file.h:81
Vector * _texCoord
Definition: display.h:1573
Definition: gls_painter.h:51
void DCSToLogical(Vector dcsPoint, Vector &logicalPoint, const GlsMatrixType *dcsMatrix=NULL)
void LogicalToDCS(Vector logicalPoint, Vector &objectLocal, const Vector *directionVector, const Vector &planeNormal=Vector(0, 0, 1), const Vector &planePoint=Vector(), const GlsMatrixType *dcsMatrix=NULL)
virtual int Shading(void)
virtual Vector DynamicScale()
unsigned int _nTex_vertices
Definition: display.h:1559
bool _blinking
Definition: display.h:1524
virtual ~DisplayObject(void)
void Transform(Vector &v) const 
Definition: gls_matrix_affine.h:269
virtual void DeleteVertex(unsigned int index)
VertexNoColor Vector
Definition: gls_font_base.h:66
virtual GlsColor GetFillColor(void)
GlsMatrixType * _modelMatrix
Definition: display.h:1554
virtual Vertex * Vertices()
virtual float ObjectDepth(void)
const GlsMatrixType * DrawMatrix()
Definition: display.h:492
GlsMatrixType * ProjMatrix()
bool NeedCalcDrawMatrix()
Definition: display.h:496
virtual int TextureIndex(void)
GL Studio Enumerations and constants. 
bool _attributesAdded
Definition: display.h:1522
float X(void) const 
Definition: display.h:807
virtual void SetNormals(unsigned int nPoints, Vector *vertices)
virtual DistiAttributeBase & Resource(const char *name)
The disti::Vertex class. A class for manipulating 3D vertices. 
virtual void SetOrigin(const Vertex &vert)
virtual Vector * GetTexturePoints(void)
Generally useful defines, macros, enumerations and function prototypes. 
virtual void DynamicRotateRelative(float angle, int axis)
T * end(DynamicArray< T, TypeIsSimple > &array)
Overload end() so that range-for loops and other constructs work with DynamicArray. 
Definition: dynamic_array.h:450
virtual int TextureMappingTechnique(void)
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint)
virtual DynamicArray< int > & MaterialIndices()
void UserData(void *data)
Definition: display.h:1354
unsigned char _shading
Definition: display.h:1571
void Y(const float y)
Definition: display.h:819
unsigned char _textureRepeat
Definition: display.h:1594
int _polygonOffset
Definition: display.h:1567
void PickSetup(float x, float y, float z, Vertex *vertices, unsigned int vertex_cnt, const Vector &directionVector)
bool Culled() const 
Definition: display.h:420
void X(const float x)
Definition: display.h:816
Definition: disti_metadata.h:182
void CalcDrawMatrixIfExists()
Definition: display.h:1629
virtual bool CullBackFace(void)
GlsColor _color
Definition: display.h:1528
virtual void InsertVertex(unsigned int index)
int _textureIndex
Definition: display.h:1578
Vector * GetTextureCoordinates(void)
Definition: display.h:1245
Definition: gls_color.h:53
void Z(const float z)
Definition: display.h:822
virtual void Rotate(float angle, int axis=Z_AXIS)
char * InstanceName(void)
virtual void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax=true)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
unsigned char _textureMap
Definition: display.h:1586
Definition: disti_metadata.h:660
Definition: weak_referenceable_mixin.h:52
#define MAX(A, B)
Definition: util.h:173
unsigned int _nVertices
Definition: display.h:1561
virtual void GetCenter(Vector ¢er)
void VaSetNormals(unsigned int nPoints,...)
Vector * TextureCoordinates(void)
Definition: display.h:1238
Definition: callback_caller_base.h:55
virtual int DepthTest(void)
virtual DisplayObject * CloneObject(bool generateNames=false)=0
virtual void SetPainter(GlsPainter *painter)
void VaSetVertices(unsigned int nPoints,...)
unsigned char _depthTest
Definition: display.h:1535
virtual float RelativeAngle(const float x, const float y)
The disti::Culler class. Implements view frustum culling. 
void NotifyAttributeChanged(const AttributeName &name)
virtual void GenerateInstanceName(void)
bool LogicalToWindow(const Vector &logical, Vector &winLoc, const OpenGLMatrices &alternateMatrices=OpenGLMatrices())
Definition: disti_metadata.h:453
unsigned char Pickable()
Definition: display.h:939
virtual bool AntiAlias(void)
void Scale(int handleBar, float px, float py, Vertex *anchor=NULL)
Definition: display.h:1112
virtual void SetColor(const GlsColor &color)
unsigned char _polygonEnd
Definition: display.h:1563
GlsMatrixType _dcsMatrix
Definition: display.h:1532
virtual void GetLocation(Vertex &v)
void PickCleanup(Vertex *vertices, unsigned int vertex_cnt)
virtual GlsColor GetColor()
virtual void TranslateVertices(float x, float y, float z)
virtual void Draw(void)=0
int _alphaMode
Definition: display.h:1518
virtual Vector DynamicTranslation()
void NeedCalculate(bool val)
Definition: display.h:1659
const Vertex & RotationPoint() const 
Definition: display.h:1056
virtual bool Blinking(void)
The GlsPainter interface. 
Vertex * _vertices
Definition: display.h:1598
void AllocateModelMatrix()
bool NeedCalculate()
Definition: display.h:840
virtual GlsPainter * GetPainter()
virtual bool LightingEnabled()
void * _userData
Definition: display.h:1596
virtual void SetAvailableAttributes(unsigned int value)
Definition: gls_resources.h:50
bool _antiAlias
Definition: display.h:1520
unsigned int NumberOfVertices() const 
Definition: display.h:862
virtual bool TextureRepeat(void)
float BoundingVolumeRadius() const 
Definition: display.h:276
bool WindowToLogical(const Vector &winLoc, Vector &logical, Vector *directionVector=NULL, const OpenGLMatrices &alternateMatrices=OpenGLMatrices())
bool SetupAntiAlias(void)
AvailableAttributesEnum
Definition: display.h:131
void GetExtentsDCS(Vector &min, Vector &max)
Definition: disti_metadata.h:84
virtual bool GetPlaneVectorPoints(Vertex &p1, Vertex &p2, Vertex &p3, Vertex &planeVector)
int GetApplicableTextureRepeat()
void RestoreLineStyle(void)
Definition: bmpimage.h:46
virtual int LineStippleMultiplier(void)
virtual void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1)
virtual int PolygonMode(void)
virtual void VaListSetVertices(unsigned int nPoints, va_list args)
virtual int TextureMinificationFilter(void)
DisplayObjectEditor * Editor()
void SetFillColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Definition: display.h:664
virtual int PolygonEnd(void)
virtual GlsColor GetBlendColor()
virtual int LineStipplePattern(void)
bool _cullBackFace
Definition: display.h:1530
virtual void CalcDrawMatrix()
void RestoreAntiAlias(void)
Group * ParentGroup(void) const 
Definition: display.h:908
virtual float ObjectWidth(void)
int * _viewMatrix
Definition: display.h:1602
virtual DisplayObject * handle(DisplayEvent *ev)
virtual void DynamicTranslate(float x, float y, float z, bool relative=false)
Definition: editor_object_base.h:48