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...
Sort by distance from the camera.
The filter used when determining the mipmap.
uint32 getHash() const
Get the hash value.
map< String, bool >::type UnaryOptionList
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
Stencil shadow technique which renders all shadow volumes as a modulation after all the non-transpare...
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
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.
Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_POINT.
The filter used when magnifying a texture.
ShadowTechnique
An enumeration of broad shadow techniques.
Representation of a dynamic light source in the scene.
TRect & merge(const TRect &rhs)
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
reverse_iterator rbegin()
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
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.
Solid polygons are rendered.
Equal to: min=FO_ANISOTROPIC, max=FO_ANISOTROPIC, mip=FO_LINEAR.
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
Only points are rendered.
The filter used when shrinking a texture.
No culling so everything is sent to the hardware.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
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 density increases at the square of FOG_EXP, i.e. even quicker (fog = 1/e^(distance * density)^2)
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
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 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)
All techniques are forced to one weight per vertex.
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.
No filtering, used for FT_MIP to turn off mipmapping.
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)
const_reverse_iterator rbegin() const
std::map< K, V, P, A > type
Fog density increases linearly between the start and end distances.
NameValuePairList miscParams
Cull triangles whose normal is pointing towards the camera.
reference at(size_type n)
Hardware culls triangles whose vertices are listed anticlockwise in the view.
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
Everything was clipped away.
Mask for texture shadows (not for direct use, use SHADOWTYPE_ enum instead)
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.
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())
Mask for stencil shadows (not for direct use, use SHADOWTYPE_ enum instead)
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.
Wireframe models are rendered.
Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_LINEAR.
Sort by direction of the camera.
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
Gradual steady decrease from max to min over the period, with an instant return to max at the end.
HashedVector(const HashedVector< T > &rhs)
Use one weight per vertex when recommended (i.e.
PolygonMode
The polygon mode to use when rasterising.
Mask for modulative shadows (not for direct use, use SHADOWTYPE_ enum instead)
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.
Forces an amount of instances per batch low enough so that vertices * numInst < 65535 since usually i...
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.