Go to the documentation of this file.
34 #if defined ( OGRE_GCC_VISIBILITY )
35 # pragma GCC visibility push(default)
38 #if defined ( OGRE_GCC_VISIBILITY )
39 # pragma GCC visibility pop
58 return FastHash((
const char*)&data,
sizeof(T), hashSoFar);
331 template <
typename T>
335 typedef std::vector<T, STLAllocator<T, GeneralAllocPolicy> >
VectorImpl;
379 return mList.begin();
388 return mList.rbegin();
408 return mList.const_iterator(n);
417 template <
class InputIterator>
438 return mList.front();
467 bool recalc = (pos !=
end());
476 template <
class InputIterator>
478 InputIterator f, InputIterator l)
480 mList.insert(pos, f, l);
486 mList.insert(pos, n, x);
559 TRect( T
const & l, T
const & t, T
const & r, T
const & b )
638 o <<
"TRect<>(l:" << r.
left <<
", t:" << r.
top <<
", r:" << r.
right <<
", b:" << r.
bottom <<
")";
uint32 HashCombine(uint32 hashSoFar, const T &data)
Combine hashes with same style as boost::hash_combine.
const_reference back() const
VectorImpl::const_reference const_reference
Box(uint32 l, uint32 t, uint32 r, uint32 b)
Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and b...
@ SM_DISTANCE
Sort by distance from the camera.
@ FT_MIP
The filter used when determining the mipmap.
uint32 getHash() const
Get the hash value.
map< String, bool >::type UnaryOptionList
@ TFO_NONE
Equal to: min=FO_POINT, mag=FO_POINT, mip=FO_NONE.
reference operator[](size_type n)
const_reference at(size_type n) const
TRect(T const &l, T const &t, T const &r, T const &b)
VectorImpl::size_type size_type
@ SHADOWTYPE_STENCIL_MODULATIVE
Stencil shadow technique which renders all shadow volumes as a modulation after all the non-transpare...
@ SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
TRect< float > FloatRect
Structure used to define a rectangle in a 2-D floating point space.
const_iterator begin() const
@ SHADOWTYPE_TEXTURE_MODULATIVE
Texture-based shadow technique which involves a monochrome render-to-texture of the shadow caster and...
int _OgreExport findCommandLineOpts(int numargs, char **argv, UnaryOptionList &unaryOptList, BinaryOptionList &binOptList)
Locate command-line options of the unary form '-blah' and of the binary form '-blah foo',...
vector< RenderWindowDescription >::type RenderWindowDescriptionList
Render window creation parameters container.
ClipResult
Generic result of clipping.
@ TFO_BILINEAR
Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_POINT.
@ FT_MAG
The filter used when magnifying a texture.
ShadowTechnique
An enumeration of broad shadow techniques.
TRect & merge(const TRect &rhs)
@ MANUAL_CULL_BACK
Cull triangles whose normal is pointing away from the camera (default).
iterator erase(iterator pos)
uint32 getWidth() const
Get the width of this box.
uint32 getHeight() const
Get the height of this box.
void insert(iterator pos, InputIterator f, InputIterator l)
TextureFilterOptions
High-level filtering options providing shortcuts to settings the minification, magnification and mip ...
HashedVector< T > & operator=(const HashedVector< T > &rhs)
WaveformType
Enumerates the wave types usable with the Ogre engine.
bool operator<(const HashedVector< T > &b)
TRect< Real > RealRect
Structure used to define a rectangle in a 2-D floating point space, subject to double / single floati...
SortMode
Sort mode for billboard-set and particle-system.
iterator erase(iterator first, iterator last)
VectorImpl::reverse_iterator reverse_iterator
@ SHADOWTYPE_NONE
No shadows.
reverse_iterator rbegin()
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
@ WFT_SINE
Standard sine wave which smoothly changes from low to high and back again.
size_type capacity() const
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
@ PM_SOLID
Solid polygons are rendered.
@ TFO_ANISOTROPIC
Equal to: min=FO_ANISOTROPIC, max=FO_ANISOTROPIC, mip=FO_LINEAR.
@ CULL_CLOCKWISE
Hardware culls triangles whose vertices are listed clockwise in the view (default).
TRect< long > Rect
Structure used to define a rectangle in a 2-D integer space.
Box(uint32 l, uint32 t, uint32 ff, uint32 r, uint32 b, uint32 bb)
Define a box from left, top, front, right, bottom and back coordinates.
bool operator==(const HashedVector< T > &b)
bool contains(const Box &def) const
Return true if the other box is a part of this one.
VectorImpl::pointer pointer
void addToHash(const T &newPtr) const
@ PM_POINTS
Only points are rendered.
@ FT_MIN
The filter used when shrinking a texture.
@ MANUAL_CULL_NONE
No culling so everything is sent to the hardware.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
@ FO_ANISOTROPIC
Similar to FO_LINEAR, but compensates for the angle of the texture plane.
iterator insert(iterator pos, const T &t)
std::vector< T, STLAllocator< T, GeneralAllocPolicy > > VectorImpl
HashedVector(size_type n)
Render window creation parameters.
@ FOG_EXP2
Fog density increases at the square of FOG_EXP, i.e. even quicker (fog = 1/e^(distance * density)^2)
@ CLIPPED_NONE
Nothing was clipped.
@ SHADOWTYPE_TEXTURE_ADDITIVE
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
@ SHADOWTYPE_STENCIL_ADDITIVE
Stencil shadow technique which renders each light as a separate additive pass to the scene.
vector< RenderWindow * >::type RenderWindowList
Render window container.
map< String, String >::type AliasTextureNamePairList
Alias / Texture name pair (first = alias, second = texture name)
FilterOptions
Filtering options for textures / mipmaps.
TRect & operator=(TRect const &o)
void push_back(const T &t)
@ FOG_EXP
Fog density increases exponentially from the camera (fog = 1/e^(distance * density))
Structure used to define a box in a 3-D integer space.
CullingMode
Hardware culling modes based on vertex winding.
const_reverse_iterator rend() const
void swap(HashedVector< T > &rhs)
@ WFT_PWM
Pulse Width Modulation.
@ IM_FORCEONEWEIGHT
All techniques are forced to one weight per vertex.
@ SHADOWDETAILTYPE_ADDITIVE
Mask for additive shadows (not for direct use, use SHADOWTYPE_ enum instead)
int TrackVertexColourType
An enumeration describing which material properties should track the vertex colours.
@ FO_NONE
No filtering, used for FT_MIP to turn off mipmapping.
@ FO_LINEAR
Average of a 2x2 pixel area, denotes bilinear for MIN and MAG, trilinear for MIP.
Box()
Parameterless constructor for setting the members manually.
map< String, String >::type BinaryOptionList
VectorImpl::const_iterator const_iterator
HashedVector(InputIterator a, InputIterator b)
@ IM_USEBONEDUALQUATERNIONS
const_reverse_iterator rbegin() const
@ FO_POINT
Use the closest pixel.
std::map< K, V, P, A > type
@ FOG_LINEAR
Fog density increases linearly between the start and end distances.
NameValuePairList miscParams
@ MANUAL_CULL_FRONT
Cull triangles whose normal is pointing towards the camera.
reference at(size_type n)
@ CULL_ANTICLOCKWISE
Hardware culls triangles whose vertices are listed anticlockwise in the view.
@ WFT_SQUARE
Half of the time is spent at the min, half at the max with instant transition between.
size_type max_size() const
ShadeOptions
Light shading modes.
VectorImpl::reference reference
@ CLIPPED_ALL
Everything was clipped away.
@ SHADOWDETAILTYPE_TEXTURE
Mask for texture shadows (not for direct use, use SHADOWTYPE_ enum instead)
@ SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
uint32 getDepth() const
Get the depth of this box.
@ IM_VTFBONEMATRIXLOOKUP
Use a limited number of skeleton animations shared among all instances.
ManualCullingMode
Manual culling modes based on vertex normals.
VectorImpl::value_type value_type
void resize(size_type n, const T &t=T())
@ SHADOWDETAILTYPE_STENCIL
Mask for stencil shadows (not for direct use, use SHADOWTYPE_ enum instead)
@ CULL_NONE
Hardware never culls triangles and renders everything it receives.
InstanceManagerFlags
Flags for the Instance Manager when calculating ideal number of instances per batch.
TRect intersect(const TRect &rhs) const
HashedVector(size_type n, const T &t)
VectorImpl::difference_type difference_type
const_reference operator[](size_type n) const
FrameBufferType
Defines the frame buffer types.
@ CLIPPED_SOME
Partially clipped.
@ PM_WIREFRAME
Wireframe models are rendered.
@ TFO_TRILINEAR
Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_LINEAR.
@ SM_DIRECTION
Sort by direction of the camera.
@ SHADOWDETAILTYPE_INTEGRATED
Mask for integrated shadows (not for direct use, use SHADOWTYPE_ enum instead)
const_iterator end() const
const_reference front() const
VectorImpl::const_reverse_iterator const_reverse_iterator
@ WFT_INVERSE_SAWTOOTH
Gradual steady decrease from max to min over the period, with an instant return to max at the end.
HashedVector(const HashedVector< T > &rhs)
@ IM_USEONEWEIGHT
Use one weight per vertex when recommended (i.e.
PolygonMode
The polygon mode to use when rasterising.
@ SHADOWDETAILTYPE_MODULATIVE
Mask for modulative shadows (not for direct use, use SHADOWTYPE_ enum instead)
@ WFT_SAWTOOTH
Gradual steady increase from min to max over the period with an instant return to min at the end.
uint32 _OgreExport FastHash(const char *data, int len, uint32 hashSoFar=0)
Fast general hashing algorithm.
@ IM_USE16BIT
Forces an amount of instances per batch low enough so that vertices * numInst < 65535 since usually i...
@ WFT_TRIANGLE
An angular wave with a constant increase / decrease speed with pointed peaks.
HashedVector< Light * > LightList
void insert(iterator pos, size_type n, const T &x)
VectorImpl::iterator iterator
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.