 |
OGRE
1.12.4
Object-Oriented Graphics Rendering Engine
|
- Getting Started
- Components
- In Depth
A list of triangles, 3 vertices per triangle.
Definition: OgreRenderOperation.h:56
void clearTray(TrayLocation trayLoc)
Removes all widgets from a widget tray.
virtual SceneNode * createChildSceneNode(const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY)
Creates an unnamed new SceneNode as a child of this node.
virtual const String & getGroup(void) const
Gets the group which this resource is a member of.
Definition: OgreResource.h:391
static ResourceBackgroundQueue & getSingleton(void)
Get the singleton instance.
Vector< 2, Real > Vector2
Definition: OgrePrerequisites.h:250
Encapsulates the result of a background queue request.
Definition: OgreResourceBackgroundQueue.h:51
const WidgetList & getWidgets(TrayLocation trayLoc) const
Gets all the widgets of a specific tray.
Definition: OgreTrays.h:978
virtual BackgroundProcessTicket prepare(const String &resType, const String &name, const String &group, bool isManual=false, ManualResourceLoader *loader=0, const NameValuePairList *loadParams=0, Listener *listener=0)
Prepare a single resource in the background.
Vector< 3, Real > Vector3
Definition: OgrePrerequisites.h:253
SubMesh * createSubMesh(void)
Creates a new SubMesh.
Ogre::Ray getCursorRay(Ogre::Camera *cam)
Returns a 3D ray into the scene that is directly underneath the cursor.
Builds the union between two sources.
Definition: OgreVolumeCSGSource.h:251
void destroyAllWidgets()
Destroys all widgets.
void setTimer(Timer *t)
Sets the timer for the profiler.
void setDepthBufferPool(uint16 poolId)
Sets the pool ID this RenderTarget should query from.
Definition: OgreTrays.h:56
SceneManager * sceneManager
The scenemanager to construct the entity with.
Definition: OgreVolumeChunk.h:58
Vector3 updateFrom
If an existing chunktree is to be partially updated, set this to the back lower left point of the (su...
Definition: OgreVolumeChunk.h:91
Defines a plane in 3D space.
Definition: OgrePlane.h:62
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
Definition: OgreCommon.h:262
Definition: OgreTrays.h:59
Defines an instance of a discrete, movable object based on a Mesh.
Definition: OgreEntity.h:79
virtual void position(const Vector3 &pos)
Add a vertex position, starting a new vertex at the same time.
A volume source from a 3D texture.
Definition: OgreVolumeTextureSource.h:44
Real errorMultiplicator
The error multiplicator per LOD level with 1.0 as default.
Definition: OgreVolumeChunk.h:67
void setTrayPadding(Ogre::Real padding)
void clearAllTrays()
Removes all widgets from all widget trays.
Manages the target rendering window.
Definition: OgreRenderWindow.h:62
size_t vertexCount
The number of vertices used in this operation.
Definition: OgreVertexIndexData.h:90
static Profiler & getSingleton(void)
Get the singleton instance.
static Ogre::Vector2 sceneToScreen(Ogre::Camera *cam, const Ogre::Vector3 &pt)
Converts a 3D scene position to a 2D screen position (in relative screen size, 0.0-1....
void setWidgetSpacing(Ogre::Real spacing)
Class providing a much simplified interface to generating manual objects with custom geometry.
Definition: OgreManualObject.h:106
Parameters for loading the volume.
Definition: OgreVolumeChunk.h:55
virtual void textureCoord(float u)
Add a texture coordinate to the current vertex.
Class representing colour.
Definition: OgreColourValue.h:57
SharedPtr< HardwareVertexBuffer > HardwareVertexBufferSharedPtr
Definition: OgrePrerequisites.h:292
static MeshManager & getSingleton(void)
Get the singleton instance.
Fog density increases linearly between the start and end distances.
Definition: OgreCommon.h:153
static Ogre::Ray screenToScene(Ogre::Camera *cam, const Ogre::Vector2 &pt)
Converts a 2D screen coordinate (in pixels) to a 3D ray into the scene.
Normal, 3 reals per vertex.
Definition: OgreHardwareVertexBuffer.h:97
int locateWidgetInTray(Widget *widget)
Gets a widget's position in its tray.
std::vector< Vertex > VecVertex
To hold vertices.
Definition: OgreVolumeMeshBuilder.h:103
void moveWidgetToTray(Widget *widget, TrayLocation trayLoc, size_t place=-1)
Adds a widget to a specified tray at given position, or at the end if unspecified or invalid.
Real maxScreenSpaceError
The maximum accepted screen space error when choosing the LOD levels to render.
Definition: OgreVolumeChunk.h:85
virtual void load(bool backgroundThread=false)
Loads the resource, if it is not already.
bool error
Whether an error occurred.
Definition: OgreResourceBackgroundQueue.h:54
void setListener(TrayListener *listener)
Definition: OgreTrays.h:775
std::vector< size_t > VecIndices
To hold indices.
Definition: OgreVolumeMeshBuilder.h:107
Definition: OgreHardwareVertexBuffer.h:123
Definition: OgreOverlayElement.h:70
32-bit pixel format, 32 bits (float) for red
Definition: OgrePixelFormat.h:122
virtual void operationCompleted(BackgroundProcessTicket ticket, const BackgroundProcessResult &result)=0
Called when a requested operation completes, queued into main thread.
virtual void load(SceneNode *parent, const Vector3 &from, const Vector3 &to, size_t level, const ChunkParameters *parameters)
Loads the volume mesh with all LODs.
float Real
Software floating point type.
Definition: OgrePrerequisites.h:52
Vector3 normal
Definition: OgrePlane.h:65
VertexData * sharedVertexData
Shared vertex data.
Definition: OgreMesh.h:309
bool watchForLimit(const String &profileName, Real limit, bool greaterThan=true)
Returns true if the specified profile goes over or under the given limit frame time.
The profiler allows you to measure the performance of your code.
Definition: OgreProfiler.h:233
Texture coordinates.
Definition: OgreHardwareVertexBuffer.h:103
Base class responsible for setting up a common context for applications.
Definition: OgreApplicationContextBase.h:85
This abstract listener interface lets you get notifications of completed background processes instead...
Definition: OgreResourceBackgroundQueue.h:93
void destroyAllWidgetsInTray(TrayLocation trayLoc)
Destroys all widgets in a tray.
ResourceManager * getCreator(void)
Gets the manager which created this resource.
Definition: OgreResource.h:403
unsigned int getNumWidgets()
Gets the number of widgets in total.
Real d
Definition: OgrePlane.h:66
virtual void writeData(size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false)=0
Writes data to the buffer from an area of system memory; note that you must ensure that your buffer i...
MeshBuilderCallback * lodCallback
Callback for a specific LOD level.
Definition: OgreVolumeChunk.h:79
Real scale
The scale of the volume with 1.0 as default.
Definition: OgreVolumeChunk.h:82
void setEnabled(bool enabled)
Sets whether this profiler is enabled.
#define OGRE_NEW
Definition: OgreMemoryAllocatorConfig.h:201
Source * src
The volume source.
Definition: OgreVolumeChunk.h:61
void disableProfile(const String &profileName)
Disables a profile.
void setUpdateDisplayFrequency(uint freq)
Sets the Profiler so the display of results are updated every n frames.
virtual void attachObject(MovableObject *obj)
Adds an instance of a scene object to this node.
Position, 3 reals per vertex.
Definition: OgreHardwareVertexBuffer.h:91
unsigned long long int RequestID
Numeric identifier for a request.
Definition: OgreWorkQueue.h:80
Definition: OgreTrays.h:61
Widget * getWidget(TrayLocation trayLoc, const Ogre::String &name)
Gets a widget from a tray by name.
A single volume chunk mesh.
Definition: OgreVolumeChunk.h:146
const _OgreExport char *const RGN_DEFAULT
Default resource group name.
#define OgreProfileBegin(a)
Definition: OgreProfiler.h:60
Main class to manage a cursor, backdrop, trays and widgets.
Definition: OgreTrays.h:741
bool watchForMax(const String &profileName)
Returns true if the specified profile reaches a new frame time maximum.
VertexDeclaration * vertexDeclaration
Declaration of the vertex to be used in this operation.
Definition: OgreVertexIndexData.h:80
Definition: OgreTrays.h:65
Definition: OgreTrays.h:57
void removeWidgetFromTray(Widget *widget)
Removes a widget from its tray.
Definition: OgreTrays.h:1042
Fog density increases exponentially from the camera (fog = 1/e^(distance * density))
Definition: OgreCommon.h:149
virtual void normal(const Vector3 &norm)
Add a vertex normal to the current vertex.
bool useSharedVertices
Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
Definition: OgreSubMesh.h:72
virtual void quad(uint32 i1, uint32 i2, uint32 i3, uint32 i4)
Add a set of 4 vertex indices to construct a quad (out of 2 triangles); this is a shortcut to calling...
A sphere.
Definition: OgreVolumeCSGSource.h:47
void enableProfile(const String &profileName)
Enables a previously disabled profile.
void _setBounds(const AxisAlignedBox &bounds, bool pad=true)
Manually set the bounding box for this Mesh.
#define OgreProfile(a)
Definition: OgreProfiler.h:59
32-bit pixel format, 8 bits for blue, green, red and alpha.
Definition: OgrePixelFormat.h:294
A 3D box aligned with the x/y/z axes.
Definition: OgreAxisAlignedBox.h:55
struct _OgreVolumeExport Ogre::Volume::Vertex Vertex
Lightweight struct to represent a mesh vertex.
void setTrayWidgetAlignment(TrayLocation trayLoc, Ogre::GuiHorizontalAlignment gha)
Sets horizontal alignment of a tray's contents.
Vector3 updateTo
If an existing chunktree is to be partially updated, set this to the front upper right point of the (...
Definition: OgreVolumeChunk.h:94
unsigned short uint16
Definition: OgrePlatform.h:255
Definition: OgreAlignedAllocator.h:34
Fog density increases at the square of FOG_EXP, i.e. even quicker (fog = 1/e^(distance * density)^2)
Definition: OgreCommon.h:151
struct Ogre::Volume::ChunkParameters ChunkParameters
Parameters for loading the volume.
TrayLocation
enumerator values for widget tray anchoring locations
Definition: OgreTrays.h:54
#define OgreProfileEnd(a)
Definition: OgreProfiler.h:61
MeshPtr createManual(const String &name, const String &groupName, ManualResourceLoader *loader=0)
Creates a new Mesh specifically for manual definition rather than loading from an object file.
Class representing a node in the scene graph.
Definition: OgreSceneNode.h:57
Real skirtFactor
Factor for the skirt length generation.
Definition: OgreVolumeChunk.h:76
virtual void begin(const String &materialName, RenderOperation::OperationType opType=RenderOperation::OT_TRIANGLE_LIST, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
Start defining a part of the object.
VertexBufferBinding * vertexBufferBinding
The vertex buffer bindings to be used.
Definition: OgreVertexIndexData.h:84
Real baseError
The smallest allowed geometric error of the highest LOD.
Definition: OgreVolumeChunk.h:64
Button * createButton(TrayLocation trayLoc, const Ogre::String &name, const Ogre::String &caption, Ogre::Real width=0)
void destroyWidget(Widget *widget)
Destroys a widget.
bool watchForMin(const String &profileName)
Returns true if the specified profile reaches a new frame time minimum.
void logResults()
Outputs current profile statistics to the log.
void setMaterial(const MaterialPtr &mat)
Overridden from SimpleRenderable.
ChunkParameters * getChunkParameters(void)
Gets the parameters with which the chunktree got loaded.
Definition: OgreDepthBuffer.h:84
virtual const String & getName(void) const
Gets resource name.
Definition: OgreResource.h:304
virtual ManualObjectSection * end(void)
Finish defining the object and compile the final renderable version.
SharedPtr< HardwareIndexBuffer > HardwareIndexBufferSharedPtr
Definition: OgrePrerequisites.h:289
This class is used to perform Resource operations in a background thread.
Definition: OgreResourceBackgroundQueue.h:81
Definition: OgreHardwareVertexBuffer.h:122
void setWidgetPadding(Ogre::Real padding)
Implements the plane optimal shadow camera algorithm.
Definition: OgreShadowCameraSetupPlaneOptimal.h:62
Definition: OgreTrays.h:63