#include <irrlichtrenderer.h>
Inheritance diagram for CEGUI::IrrlichtRenderer:
Public Types | |
typedef ConstBaseIterator< EventMap > | EventIterator |
Public Member Functions | |
IrrlichtRenderer (irr::IrrlichtDevice *dev, bool bWithIrrlichtResourceProvicer=false) | |
create the irrlicht renderer | |
virtual | ~IrrlichtRenderer () |
virtual ResourceProvider * | createResourceProvider (void) |
bool | OnEvent (irr::SEvent &event) |
virtual void | addQuad (const Rect &dest_rect, float z, const Texture *tex, const Rect &texture_rect, const ColourRect &colours, QuadSplitMode quad_split_mode) |
Add a quad to the rendering queue. All clipping and other adjustments should have been made prior to calling this. | |
virtual void | doRender (void) |
Perform final rendering for all quads that have been queued for rendering. | |
virtual void | clearRenderList (void) |
Clears all queued quads from the render queue. | |
virtual void | setQueueingEnabled (bool setting) |
Enable or disable the queueing of quads from this point on. | |
virtual Texture * | createTexture (void) |
Creates a 'null' Texture object. | |
virtual Texture * | createTexture (const String &filename, const String &resourceGroup) |
Create a Texture object using the given image file. | |
virtual Texture * | createTexture (float size) |
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square. | |
virtual void | destroyTexture (Texture *texture) |
Destroy the given Texture object. | |
virtual void | destroyAllTextures (void) |
Destroy all Texture objects. | |
virtual bool | isQueueingEnabled (void) const |
Return whether queueing is enabled. | |
virtual float | getWidth (void) const |
Return the current width of the display in pixels. | |
virtual float | getHeight (void) const |
Return the current height of the display in pixels. | |
virtual Size | getSize (void) const |
Return the size of the display in pixels. | |
virtual Rect | getRect (void) const |
Return a Rect describing the screen. | |
virtual uint | getMaxTextureSize (void) const |
Return the maximum texture size available. | |
virtual uint | getHorzScreenDPI (void) const |
Return the horizontal display resolution dpi. | |
virtual uint | getVertScreenDPI (void) const |
Return the vertical display resolution dpi. | |
void | resetZValue (void) |
Reset the z co-ordinate for rendering. | |
void | advanceZValue (void) |
Update the z co-ordinate for the next major UI element (window). | |
float | getCurrentZ (void) const |
return the current Z value to use (equates to layer 0 for this UI element). | |
float | getZLayer (uint layer) const |
return the z co-ordinate to use for the requested layer on the current GUI element. | |
const String & | getIdentifierString () const |
Return identification string for the renderer module. If the internal id string has not been set by the Renderer module creator, a generic string of "Unknown renderer" will be returned. | |
void | addEvent (const String &name) |
Add a new Event to the EventSet with the given name. | |
void | removeEvent (const String &name) |
Removes the Event with the given name. All connections to the event are disconnected. | |
void | removeAllEvents (void) |
Remove all Event objects from the EventSet. | |
bool | isEventPresent (const String &name) |
Checks to see if an Event with the given name is present in the EventSet. | |
virtual Event::Connection | subscribeEvent (const String &name, Event::Subscriber subscriber) |
Subscribes the named Event. | |
virtual Event::Connection | subscribeEvent (const String &name, Event::Group group, Event::Subscriber subscriber) |
Subscribes the specified group of the named Event. | |
virtual Event::Connection | subscribeScriptedEvent (const String &name, const String &subscriber_name) |
Subscribes the named Event to a scripted funtion. | |
virtual Event::Connection | subscribeScriptedEvent (const String &name, Event::Group group, const String &subscriber_name) |
Subscribes the specified group of the named Event to a scripted funtion. | |
virtual void | fireEvent (const String &name, EventArgs &args, const String &eventNamespace="") |
Fires the named event passing the given EventArgs object. | |
bool | isMuted (void) const |
Return whether the EventSet is muted or not. | |
void | setMutedState (bool setting) |
Set the mute state for this EventSet. | |
EventIterator | getIterator (void) const |
Return a EventSet::EventIterator object to iterate over the available events. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventDisplaySizeChanged |
Protected Types | |
typedef std::map< String, Event * > | EventMap |
Protected Attributes | |
ResourceProvider * | d_resourceProvider |
Holds the pointer to the ResourceProvider object. | |
String | d_identifierString |
String that holds some id information about the renderer. | |
EventMap | d_events |
bool | d_muted |
true if events for this EventSet have been muted. | |
Classes | |
struct | quadsorter |
struct | RenderQuad |
Definition at line 54 of file irrlichtrenderer.h.
|
Definition at line 255 of file CEGUIEventSet.h. |
|
Definition at line 246 of file CEGUIEventSet.h. |
|
create the irrlicht renderer constructor
Definition at line 32 of file irrlichtrenderer.cpp. References CEGUI::Renderer::d_identifierString, and CEGUI::Renderer::d_resourceProvider. |
|
destructor Definition at line 47 of file irrlichtrenderer.cpp. |
|
|
Add a quad to the rendering queue. All clipping and other adjustments should have been made prior to calling this.
Implements CEGUI::Renderer. Definition at line 52 of file irrlichtrenderer.cpp. References CEGUI::Rect::d_bottom, CEGUI::Rect::d_left, CEGUI::Rect::d_right, CEGUI::Rect::d_top, doRender(), CEGUI::Texture::getHeight(), and CEGUI::Texture::getWidth(). |
|
Update the z co-ordinate for the next major UI element (window).
Definition at line 331 of file CEGUIRenderer.h. Referenced by CEGUI::Window::render(). |
|
Clears all queued quads from the render queue.
Implements CEGUI::Renderer. Definition at line 138 of file irrlichtrenderer.cpp. |
|
get an irrlicht resource provider
Reimplemented from CEGUI::Renderer. Definition at line 237 of file irrlichtrenderer.cpp. References CEGUI::Renderer::d_resourceProvider. |
|
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square.
Implements CEGUI::Renderer. Definition at line 162 of file irrlichtrenderer.cpp. References createTexture(). |
|
Create a Texture object using the given image file.
Implements CEGUI::Renderer. Definition at line 155 of file irrlichtrenderer.cpp. References createTexture(), and CEGUI::IrrlichtTexture::loadFromFile(). |
|
Creates a 'null' Texture object.
Implements CEGUI::Renderer. Definition at line 148 of file irrlichtrenderer.cpp. Referenced by createTexture(). |
|
Destroy all Texture objects.
Implements CEGUI::Renderer. Definition at line 183 of file irrlichtrenderer.cpp. |
|
Destroy the given Texture object.
Implements CEGUI::Renderer. Definition at line 168 of file irrlichtrenderer.cpp. |
|
Perform final rendering for all quads that have been queued for rendering. The contents of the rendering queue is retained and can be rendered again as required. If the contents is not required call clearRenderList().
Implements CEGUI::Renderer. Definition at line 111 of file irrlichtrenderer.cpp. Referenced by addQuad(). |
|
Fires the named event passing the given EventArgs object.
Reimplemented in CEGUI::GlobalEventSet. Definition at line 160 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events, CEGUI::EventSet::d_muted, CEGUI::GlobalEventSet::fireEvent(), and CEGUI::GlobalEventSet::getSingleton(). Referenced by CEGUI::ScrollablePane::handleAutoSizePaneChanged(), CEGUI::Window::onActivated(), CEGUI::Window::onAlphaChanged(), CEGUI::Window::onAlwaysOnTopChanged(), CEGUI::ScrolledContainer::onAutoSizeSettingChanged(), CEGUI::ScrollablePane::onAutoSizeSettingChanged(), CEGUI::Window::onCaptureGained(), CEGUI::Window::onCaptureLost(), CEGUI::MultiLineEditbox::onCaratMoved(), CEGUI::Editbox::onCaratMoved(), CEGUI::Combobox::onCaratMoved(), CEGUI::Window::onCharacter(), CEGUI::Window::onChildAdded(), CEGUI::Window::onChildRemoved(), CEGUI::ListHeaderSegment::onClickableSettingChanged(), CEGUI::TabButton::onClicked(), CEGUI::PushButton::onClicked(), CEGUI::MenuItem::onClicked(), CEGUI::Window::onClippingChanged(), CEGUI::FrameWindow::onCloseClicked(), CEGUI::ScrolledContainer::onContentChanged(), CEGUI::ScrollablePane::onContentPaneChanged(), CEGUI::ScrollablePane::onContentPaneScrolled(), CEGUI::Window::onDeactivated(), CEGUI::Window::onDestructionStarted(), CEGUI::Window::onDisabled(), CEGUI::Tooltip::onDisplayTimeChanged(), CEGUI::DragContainer::onDragAlphaChanged(), CEGUI::Window::onDragDropItemDropped(), CEGUI::Window::onDragDropItemEnters(), CEGUI::Window::onDragDropItemLeaves(), CEGUI::DragContainer::onDragDropTargetChanged(), CEGUI::DragContainer::onDragEnabledChanged(), CEGUI::DragContainer::onDragEnded(), CEGUI::DragContainer::onDragMouseCursorChanged(), CEGUI::ListHeader::onDragMoveSettingChanged(), CEGUI::DragContainer::onDragPositionChanged(), CEGUI::ListHeader::onDragSizeSettingChanged(), CEGUI::DragContainer::onDragStarted(), CEGUI::DragContainer::onDragThresholdChanged(), CEGUI::Combobox::onDropListDisplayed(), CEGUI::Combobox::onDroplistRemoved(), CEGUI::MultiLineEditbox::onEditboxFullEvent(), CEGUI::Editbox::onEditboxFullEvent(), CEGUI::Combobox::onEditboxFullEvent(), CEGUI::Window::onEnabled(), CEGUI::Tooltip::onFadeTimeChanged(), CEGUI::Window::onFontChanged(), CEGUI::Window::onHidden(), CEGUI::Window::onHorizontalAlignmentChanged(), CEGUI::ScrollablePane::onHorzScrollbarModeChanged(), CEGUI::MultiLineEditbox::onHorzScrollbarModeChanged(), CEGUI::MultiColumnList::onHorzScrollbarModeChanged(), CEGUI::Listbox::onHorzScrollbarModeChanged(), CEGUI::Combobox::onHorzScrollbarModeChanged(), CEGUI::Tooltip::onHoverTimeChanged(), CEGUI::Window::onIDChanged(), CEGUI::MouseCursor::onImageChanged(), CEGUI::Window::onInheritsAlphaChanged(), CEGUI::Editbox::onInvalidEntryAttempted(), CEGUI::Combobox::onInvalidEntryAttempted(), CEGUI::Window::onKeyDown(), CEGUI::Window::onKeyUp(), CEGUI::MultiColumnList::onListColumnMoved(), CEGUI::MultiColumnList::onListColumnSized(), CEGUI::MultiColumnList::onListContentsChanged(), CEGUI::Listbox::onListContentsChanged(), CEGUI::ItemListBase::onListContentsChanged(), CEGUI::Combobox::onListContentsChanged(), CEGUI::ComboDropList::onListSelectionAccepted(), CEGUI::Combobox::onListSelectionAccepted(), CEGUI::Combobox::onListSelectionChanged(), CEGUI::Editbox::onMaskCodePointChanged(), CEGUI::Editbox::onMaskedRenderingModeChanged(), CEGUI::MultiLineEditbox::onMaximumTextLengthChanged(), CEGUI::Editbox::onMaximumTextLengthChanged(), CEGUI::Combobox::onMaximumTextLengthChanged(), CEGUI::Spinner::onMaximumValueChanged(), CEGUI::Window::onMetricsChanged(), CEGUI::Spinner::onMinimumValueChanged(), CEGUI::Window::onMouseButtonDown(), CEGUI::Window::onMouseButtonUp(), CEGUI::Window::onMouseClicked(), CEGUI::Window::onMouseDoubleClicked(), CEGUI::Window::onMouseEnters(), CEGUI::Window::onMouseLeaves(), CEGUI::Window::onMouseMove(), CEGUI::Window::onMouseTripleClicked(), CEGUI::Window::onMouseWheel(), CEGUI::ListHeaderSegment::onMovableSettingChanged(), CEGUI::Window::onMoved(), CEGUI::Listbox::onMultiselectModeChanged(), CEGUI::MultiColumnList::onNominatedSelectColumnChanged(), CEGUI::MultiColumnList::onNominatedSelectRowChanged(), CEGUI::Window::onParentDestroyChanged(), CEGUI::Window::onParentSized(), CEGUI::MenuBase::onPopupClosed(), CEGUI::MenuBase::onPopupOpened(), CEGUI::ProgressBar::onProgressChanged(), CEGUI::ProgressBar::onProgressDone(), CEGUI::MultiLineEditbox::onReadOnlyChanged(), CEGUI::Editbox::onReadOnlyChanged(), CEGUI::Combobox::onReadOnlyChanged(), CEGUI::Window::onRenderingEnded(), CEGUI::Window::onRenderingStarted(), CEGUI::FrameWindow::onRollupToggled(), CEGUI::Scrollbar::onScrollConfigChanged(), CEGUI::Scrollbar::onScrollPositionChanged(), CEGUI::ListHeader::onSegmentAdded(), CEGUI::ListHeaderSegment::onSegmentClicked(), CEGUI::ListHeader::onSegmentClicked(), CEGUI::ListHeaderSegment::onSegmentDragPositionChanged(), CEGUI::ListHeaderSegment::onSegmentDragStart(), CEGUI::ListHeaderSegment::onSegmentDragStop(), CEGUI::ListHeader::onSegmentOffsetChanged(), CEGUI::ListHeader::onSegmentRemoved(), CEGUI::ListHeader::onSegmentSequenceChanged(), CEGUI::ListHeaderSegment::onSegmentSized(), CEGUI::ListHeader::onSegmentSized(), CEGUI::TabControl::onSelectionChanged(), CEGUI::MultiColumnList::onSelectionChanged(), CEGUI::Listbox::onSelectionChanged(), CEGUI::MultiColumnList::onSelectionModeChanged(), CEGUI::Checkbox::onSelectStateChange(), CEGUI::RadioButton::onSelectStateChanged(), CEGUI::Window::onShown(), CEGUI::Window::onSized(), CEGUI::ListHeaderSegment::onSizingSettingChanged(), CEGUI::MultiColumnList::onSortColumnChanged(), CEGUI::ListHeader::onSortColumnChanged(), CEGUI::MultiColumnList::onSortDirectionChanged(), CEGUI::ListHeaderSegment::onSortDirectionChanged(), CEGUI::ListHeader::onSortDirectionChanged(), CEGUI::Listbox::onSortModeChanged(), CEGUI::Combobox::onSortModeChanged(), CEGUI::ListHeader::onSortSettingChanged(), CEGUI::ListHeaderSegment::onSplitterDoubleClicked(), CEGUI::ListHeader::onSplitterDoubleClicked(), CEGUI::Spinner::onStepChanged(), CEGUI::Editbox::onTextAcceptedEvent(), CEGUI::Combobox::onTextAcceptedEvent(), CEGUI::Window::onTextChanged(), CEGUI::Spinner::onTextInputModeChanged(), CEGUI::Editbox::onTextInvalidatedEvent(), CEGUI::Combobox::onTextInvalidatedEvent(), CEGUI::MultiLineEditbox::onTextSelectionChanged(), CEGUI::Editbox::onTextSelectionChanged(), CEGUI::Combobox::onTextSelectionChanged(), CEGUI::Thumb::onThumbPositionChanged(), CEGUI::Thumb::onThumbTrackEnded(), CEGUI::Slider::onThumbTrackEnded(), CEGUI::Scrollbar::onThumbTrackEnded(), CEGUI::Thumb::onThumbTrackStarted(), CEGUI::Slider::onThumbTrackStarted(), CEGUI::Scrollbar::onThumbTrackStarted(), CEGUI::Tooltip::onTooltipActive(), CEGUI::Tooltip::onTooltipInactive(), CEGUI::Editbox::onValidationStringChanged(), CEGUI::Combobox::onValidationStringChanged(), CEGUI::Spinner::onValueChanged(), CEGUI::Slider::onValueChanged(), CEGUI::Window::onVerticalAlignmentChanged(), CEGUI::ScrollablePane::onVertScrollbarModeChanged(), CEGUI::MultiLineEditbox::onVertScrollbarModeChanged(), CEGUI::MultiColumnList::onVertScrollbarModeChanged(), CEGUI::Listbox::onVertScrollbarModeChanged(), CEGUI::Combobox::onVertScrollbarModeChanged(), CEGUI::MultiLineEditbox::onWordWrapModeChanged(), CEGUI::Window::onZChanged(), CEGUI::DirectX81Renderer::setDisplaySize(), CEGUI::OpenGLRenderer::setDisplaySize(), and CEGUI::DirectX9Renderer::setDisplaySize(). |
|
return the current Z value to use (equates to layer 0 for this UI element).
Definition at line 341 of file CEGUIRenderer.h. Referenced by CEGUI::MultiLineEditbox::cacheTextLines(), CEGUI::TextItem::populateRenderCache(), CEGUI::MultiColumnList::populateRenderCache(), CEGUI::Listbox::populateRenderCache(), and CEGUI::Window::render(). |
|
Return the current height of the display in pixels.
Implements CEGUI::Renderer. Definition at line 204 of file irrlichtrenderer.cpp. |
|
Return the horizontal display resolution dpi.
Implements CEGUI::Renderer. Definition at line 224 of file irrlichtrenderer.cpp. |
|
Return identification string for the renderer module. If the internal id string has not been set by the Renderer module creator, a generic string of "Unknown renderer" will be returned.
Definition at line 83 of file CEGUIRenderer.cpp. References CEGUI::Renderer::d_identifierString. |
|
Return a EventSet::EventIterator object to iterate over the available events.
Definition at line 203 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events. |
|
Return the maximum texture size available.
Implements CEGUI::Renderer. Definition at line 219 of file irrlichtrenderer.cpp. |
|
Return a Rect describing the screen.
Implements CEGUI::Renderer. Definition at line 214 of file irrlichtrenderer.cpp. |
|
Return the size of the display in pixels.
Implements CEGUI::Renderer. Definition at line 209 of file irrlichtrenderer.cpp. |
|
Return the vertical display resolution dpi.
Implements CEGUI::Renderer. Definition at line 229 of file irrlichtrenderer.cpp. |
|
Return the current width of the display in pixels.
Implements CEGUI::Renderer. Definition at line 199 of file irrlichtrenderer.cpp. |
|
return the z co-ordinate to use for the requested layer on the current GUI element.
Definition at line 355 of file CEGUIRenderer.h. Referenced by CEGUI::MultiLineEditbox::cacheTextLines(), CEGUI::TextItem::populateRenderCache(), CEGUI::MultiColumnList::populateRenderCache(), and CEGUI::Listbox::populateRenderCache(). |
|
Checks to see if an Event with the given name is present in the EventSet.
Definition at line 102 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events. Referenced by CEGUI::EventSet::addEvent(). |
|
Return whether the EventSet is muted or not.
Definition at line 184 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_muted. Referenced by CEGUI::Spinner::onTextInputModeChanged(), and CEGUI::Spinner::onValueChanged(). |
|
Return whether queueing is enabled.
Implements CEGUI::Renderer. Definition at line 194 of file irrlichtrenderer.cpp. |
|
forward event to CEGUI system Definition at line 254 of file irrlichtrenderer.cpp. References CEGUI::EventPusher::OnEvent(). |
|
Remove all Event objects from the EventSet.
Definition at line 85 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events. Referenced by CEGUI::EventSet::~EventSet(). |
|
Removes the Event with the given name. All connections to the event are disconnected.
Definition at line 69 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events. |
|
Reset the z co-ordinate for rendering.
Definition at line 321 of file CEGUIRenderer.h. Referenced by CEGUI::Renderer::Renderer(), and CEGUI::System::renderGUI(). |
|
Set the mute state for this EventSet.
Definition at line 193 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_muted. Referenced by CEGUI::Spinner::onTextInputModeChanged(), and CEGUI::Spinner::onValueChanged(). |
|
Enable or disable the queueing of quads from this point on. This only affects queueing. If queueing is turned off, any calls to addQuad will cause the quad to be rendered directly. Note that disabling queueing will not cause currently queued quads to be rendered, nor is the queue cleared - at any time the queue can still be drawn by calling doRender, and the list can be cleared by calling clearRenderList. Re-enabling the queue causes subsequent quads to be added as if queueing had never been disabled.
Implements CEGUI::Renderer. Definition at line 143 of file irrlichtrenderer.cpp. |
|
Subscribes the specified group of the named Event.
Reimplemented in CEGUI::GlobalEventSet. Definition at line 145 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events. |
|
Subscribes the named Event.
Reimplemented in CEGUI::GlobalEventSet. Definition at line 129 of file CEGUIEventSet.cpp. References CEGUI::EventSet::d_events. Referenced by CEGUI::TabControl::addButtonForTabContent(), CEGUI::TabControl::addTab(), CEGUI::ListHeader::createInitialisedSegment(), CEGUI::StaticText::initialise(), CEGUI::Spinner::initialise(), CEGUI::Slider::initialise(), CEGUI::Scrollbar::initialise(), CEGUI::ScrollablePane::initialise(), CEGUI::MultiLineEditbox::initialise(), CEGUI::MultiColumnList::initialise(), CEGUI::Listbox::initialise(), CEGUI::Combobox::initialise(), CEGUI::ScrolledContainer::onChildAdded(), and CEGUI::EventSet::subscribeScriptedEvent(). |
|
Subscribes the specified group of the named Event to a scripted funtion.
Definition at line 120 of file CEGUIEventSet.cpp. References CEGUI::EventSet::subscribeEvent(). |
|
Subscribes the named Event to a scripted funtion.
Definition at line 111 of file CEGUIEventSet.cpp. References CEGUI::EventSet::subscribeEvent(). |
|
Definition at line 247 of file CEGUIEventSet.h. Referenced by CEGUI::EventSet::addEvent(), CEGUI::GlobalEventSet::fireEvent(), CEGUI::EventSet::fireEvent(), CEGUI::EventSet::getIterator(), CEGUI::EventSet::isEventPresent(), CEGUI::EventSet::removeAllEvents(), CEGUI::EventSet::removeEvent(), CEGUI::GlobalEventSet::subscribeEvent(), and CEGUI::EventSet::subscribeEvent(). |
|
String that holds some id information about the renderer.
Definition at line 395 of file CEGUIRenderer.h. Referenced by CEGUI::Renderer::getIdentifierString(), and IrrlichtRenderer(). |
|
true if events for this EventSet have been muted.
Definition at line 249 of file CEGUIEventSet.h. Referenced by CEGUI::GlobalEventSet::fireEvent(), CEGUI::EventSet::fireEvent(), CEGUI::EventSet::isMuted(), and CEGUI::EventSet::setMutedState(). |
|
Holds the pointer to the ResourceProvider object.
Definition at line 394 of file CEGUIRenderer.h. Referenced by createResourceProvider(), CEGUI::Renderer::createResourceProvider(), IrrlichtRenderer(), and CEGUI::Renderer::~Renderer(). |
|
event that fires when the underlying display size had changed. It is important that all Renderer implementers fire this properly as the system itself subscribes to this event. Referenced by CEGUI::Renderer::Renderer(), CEGUI::DirectX81Renderer::setDisplaySize(), CEGUI::OpenGLRenderer::setDisplaySize(), and CEGUI::DirectX9Renderer::setDisplaySize(). |
|
Namespace for global events.
Referenced by CEGUI::DirectX81Renderer::setDisplaySize(), CEGUI::OpenGLRenderer::setDisplaySize(), and CEGUI::DirectX9Renderer::setDisplaySize(). |