40 #ifndef _DISPLAY_FRAME_H
41 #define _DISPLAY_FRAME_H
50 #ifndef GLS_EDITOR_CODE
65 static const int MAX_PLAYABLE = 20;
67 const char META_COMPONENT_HEADER_FILE_NAME[] =
"ComponentHeaderFile";
100 DragObjectMap* _dragObjectMap;
109 virtual GLS_EXPORT
void CurrentCursor(
unsigned int cursor_id );
132 virtual GLS_EXPORT
float Scale(
void ) {
return 1.0f; }
144 GLS_EXPORT
DisplayFrame(
int width,
int height,
bool allocateObjects =
true );
151 inline void ClearBitfield( GLbitfield bitField ) { _clearBitfield = bitField; }
205 virtual GLS_EXPORT
void ReadResources(
const char* filename );
229 virtual GLS_EXPORT
void SetResources( std::istream& instr );
235 inline void SetResource(
const std::string& resourceName,
const std::string& resourceVal )
239 inline void SetResource(
const char* resourceName,
const char* resourceVal )
250 std::string stringVal = value;
254 inline std::string
GetResource(
const char* resourceName )
257 std::string stringVal = value;
328 GLS_EXPORT
void Draw(
void );
336 GLS_EXPORT
void InsertObject( DisplayObject* obj,
bool reparent =
true,
bool recalculateBoundingbox =
true,
int loc = -1 );
343 GLS_EXPORT
void InsertObject( DisplayObject* obj,
int loc );
349 GLS_EXPORT
void PushObject( DisplayObject* obj );
354 GLS_EXPORT
int Width(
void );
359 GLS_EXPORT
int Height(
void );
374 virtual GLS_EXPORT
void SetRedraw(
void );
GLbitfield _clearBitfield
Definition: display_frame.h:96
Definition: display_frame.h:83
static void SetOpenGLDefaultState(bool saveVal)
virtual DisplayObject * FocusObject(void)
The disti::Material class.
The SoundSystem class for playback of audio files.
virtual void ClearFocus()
bool _cullingEnabled
Definition: display_frame.h:90
void SetResource(const std::string &resourceName, const std::string &resourceVal)
Definition: display_frame.h:235
ComponentLightMgr * LightMgr(void)
Definition: display_frame.h:411
virtual char * GetResources_CRTClean(GlsResourceFilter *filter)
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
virtual char * GetResource_CRTClean(const char *name)
virtual DisplayObject * HandleDisplayEvent(DisplayEvent *ev)
virtual void SetResources_CRTClean(const char *buf)
Definition: display_frame.h:75
SoundSystem * _sound_player
Definition: display_frame.h:136
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
DynamicArray< Material, false > DynamicMaterialArray
Definition: display_frame.h:69
virtual void ReadResources(const char *filename)
DistiAttribDict & FrameAttribDict(void)
Definition: display_frame.h:402
virtual void SetRedraw(void)
The disti::TexturePalette class.
The Message functions. Implements Messages to the user in the form of pop-up dialog boxes...
void PushObject(DisplayObject *obj)
virtual void NotifyAttributeChanged(const AttributeName &name)
static void RestoreOpenGLState(void)
std::string _componentHeaderFileName
Definition: display_frame.h:98
Definition: component_light_mgr.h:55
A file for all GL Studio files to include.
The disti::DisplayObject class and global enumerations.
The Image class. All textures are converted internally into Images.
const DistiAttribDict & FrameAttribDict(void) const
Definition: display_frame.h:405
Definition: scoped_ptr.h:53
Group * objects
Definition: display_frame.h:137
virtual DisplayObject * DragObject(void)
bool _multitouchEnabled
Definition: display_frame.h:102
std::string GetResource(const std::string &resourceName)
Definition: display_frame.h:247
The disti::Vertex class. A class for manipulating 3D vertices.
Generally useful defines, macros, enumerations and function prototypes.
bool CullingEnabled(void)
DynamicMaterialArray & MaterialPalette(void)
Definition: display_frame.h:408
Definition: disti_metadata.h:174
TexturePalette * texturePalette
Definition: display_frame.h:135
virtual void CurrentCursor(unsigned int cursor_id)
virtual bool MultitouchEnabled(void)
void LightMgr(ComponentLightMgr *val)
Definition: display_frame.h:420
unsigned int _cursorsDown
Definition: display_frame.h:103
Definition: disti_metadata.h:667
GLbitfield ClearBitfield()
Definition: display_frame.h:156
ComponentLightMgr * _lightMgr
Definition: display_frame.h:95
virtual void GetResourcesFree_CRTClean(char *memoryToFree)
DisplayFrame(int width, int height, bool allocateObjects=true)
virtual DistiAttributeBase & Resource(const char *name)
virtual InputHandler * GetInputHandler()
int _height
Definition: display_frame.h:92
virtual float Scale(void)
Definition: display_frame.h:132
Definition: disti_metadata.h:443
virtual void WriteResources(const char *filename, GlsResourceFilter *filter=NULL)
int _width
Definition: display_frame.h:91
unsigned int _currentCursor
Definition: display_frame.h:101
virtual void SetResource_CRTClean(const char *name, const char *value)
virtual void ClearDragAndFocus()
A smart pointer with unique ownership – poor man's std::unique_ptr.
float _lastPickedDepth
Definition: display_frame.h:93
void SetTexturePaletteSize(int cnt)
Definition: texture_palette.h:143
DisplayObject * GetDragObjectForCursor(unsigned int cursorID)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
virtual void SetResources(std::istream &instr)
Definition: gls_resources.h:50
virtual void GetResources(std::ostream &outstr, GlsResourceFilter *filter=NULL)
void ClearBitfield(GLbitfield bitField)
Definition: display_frame.h:151
Definition: bmpimage.h:46
DynamicMaterialArray _materialPalette
Definition: display_frame.h:94
virtual void GetResourceFree_CRTClean(char *memoryToFree)
DisplayObject * FindDragObject()