40 #ifndef _DISPLAY_FRAME_H
41 #define _DISPLAY_FRAME_H
50 #ifndef GLS_EDITOR_CODE
66 static const int MAX_PLAYABLE = 20;
68 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; }
145 GLS_EXPORT
DisplayFrame(
int width,
int height,
bool allocateObjects =
true);
152 inline void ClearBitfield(GLbitfield bitField) { _clearBitfield = bitField; }
230 virtual GLS_EXPORT
void SetResources(std::istream& instr);
236 inline void SetResource(
const std::string& resourceName,
const std::string& resourceVal)
240 inline void SetResource(
const char* resourceName,
const char* resourceVal)
251 std::string stringVal = value;
255 inline std::string
GetResource(
const char *resourceName)
258 std::string stringVal = value;
329 GLS_EXPORT
void Draw(
void);
337 GLS_EXPORT
void InsertObject(DisplayObject *obj,
bool reparent=
true,
bool recalculateBoundingbox =
true,
int loc=-1);
344 GLS_EXPORT
void InsertObject(DisplayObject *obj,
int loc);
350 GLS_EXPORT
void PushObject(DisplayObject *obj);
355 GLS_EXPORT
int Width(
void);
360 GLS_EXPORT
int Height(
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:236
ComponentLightMgr * LightMgr(void)
Definition: display_frame.h:412
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:137
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
DynamicArray< Material, false > DynamicMaterialArray
Definition: display_frame.h:70
virtual void ReadResources(const char *filename)
DistiAttribDict & FrameAttribDict(void)
Definition: display_frame.h:403
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:406
Definition: scoped_ptr.h:53
Group * objects
Definition: display_frame.h:138
virtual DisplayObject * DragObject(void)
bool _multitouchEnabled
Definition: display_frame.h:102
std::string GetResource(const std::string &resourceName)
Definition: display_frame.h:248
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:409
Definition: disti_metadata.h:179
TexturePalette * texturePalette
Definition: display_frame.h:136
virtual void CurrentCursor(unsigned int cursor_id)
virtual bool MultitouchEnabled(void)
void LightMgr(ComponentLightMgr *val)
Definition: display_frame.h:421
unsigned int _cursorsDown
Definition: display_frame.h:103
Definition: disti_metadata.h:676
GLbitfield ClearBitfield()
Definition: display_frame.h:157
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:447
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:146
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:152
Definition: bmpimage.h:46
DynamicMaterialArray _materialPalette
Definition: display_frame.h:94
virtual void GetResourceFree_CRTClean(char *memoryToFree)
DisplayObject * FindDragObject()