40 #ifndef _DISPLAY_FRAME_H
41 #define _DISPLAY_FRAME_H
51 #ifndef GLS_EDITOR_CODE
67 static const int MAX_PLAYABLE = 20;
69 const char META_COMPONENT_HEADER_FILE_NAME[] =
"ComponentHeaderFile";
103 DragObjectMap* _dragObjectMap;
112 virtual GLS_EXPORT
void CurrentCursor(
unsigned int cursor_id );
135 virtual GLS_EXPORT
float Scale(
void ) {
return 1.0f; }
147 GLS_EXPORT
DisplayFrame(
int width,
int height,
bool allocateObjects =
true );
154 inline void ClearBitfield( GLbitfield bitField ) { _clearBitfield = bitField; }
208 virtual GLS_EXPORT
void ReadResources(
const char* filename );
232 virtual GLS_EXPORT
void SetResources( std::istream& instr );
238 inline void SetResource(
const std::string& resourceName,
const std::string& resourceVal )
242 inline void SetResource(
const char* resourceName,
const char* resourceVal )
253 std::string stringVal = value;
257 inline std::string
GetResource(
const char* resourceName )
260 std::string stringVal = value;
331 GLS_EXPORT
void Draw(
void );
339 GLS_EXPORT
void InsertObject( DisplayObject* obj,
bool reparent =
true,
bool recalculateBoundingbox =
true,
int loc = -1 );
346 GLS_EXPORT
void InsertObject( DisplayObject* obj,
int loc );
352 GLS_EXPORT
void PushObject( DisplayObject* obj );
357 GLS_EXPORT
int Width(
void );
362 GLS_EXPORT
int Height(
void );
GLbitfield _clearBitfield
Definition: display_frame.h:99
Definition: display_frame.h:85
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:93
void SetResource(const std::string &resourceName, const std::string &resourceVal)
Definition: display_frame.h:238
ComponentLightMgr * LightMgr(void)
Definition: display_frame.h:415
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:77
SoundSystem * _sound_player
Definition: display_frame.h:139
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
DynamicArray< Material, false > DynamicMaterialArray
Definition: display_frame.h:71
virtual void ReadResources(const char *filename)
DistiAttribDict & FrameAttribDict(void)
Definition: display_frame.h:406
virtual void SetRedraw(void)
Definition: display_frame.h:378
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:101
weak reference and related classes
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:409
Definition: scoped_ptr.h:53
Group * objects
Definition: display_frame.h:140
virtual DisplayObject * DragObject(void)
bool _multitouchEnabled
Definition: display_frame.h:105
std::string GetResource(const std::string &resourceName)
Definition: display_frame.h:250
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:412
Definition: disti_metadata.h:182
TexturePalette * texturePalette
Definition: display_frame.h:138
virtual void CurrentCursor(unsigned int cursor_id)
virtual bool MultitouchEnabled(void)
void LightMgr(ComponentLightMgr *val)
Definition: display_frame.h:424
unsigned int _cursorsDown
Definition: display_frame.h:106
Definition: disti_metadata.h:660
Definition: weak_referenceable_mixin.h:52
GLbitfield ClearBitfield()
Definition: display_frame.h:159
ComponentLightMgr * _lightMgr
Definition: display_frame.h:98
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:95
virtual float Scale(void)
Definition: display_frame.h:135
Definition: disti_metadata.h:453
virtual void WriteResources(const char *filename, GlsResourceFilter *filter=NULL)
int _width
Definition: display_frame.h:94
unsigned int _currentCursor
Definition: display_frame.h:104
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:96
void SetTexturePaletteSize(int cnt)
Definition: texture_palette.h:143
The GlsPainter interface.
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:154
Definition: bmpimage.h:46
DynamicMaterialArray _materialPalette
Definition: display_frame.h:97
virtual void GetResourceFree_CRTClean(char *memoryToFree)
DisplayObject * FindDragObject()