34 #if defined ( OGRE_GCC_VISIBILITY )
35 # pragma GCC visibility push(default)
41 #if defined ( OGRE_GCC_VISIBILITY )
42 # pragma GCC visibility pop
59 return FastHash((
const char*)&data,
sizeof(T), hashSoFar);
305 template <
typename T>
309 typedef std::vector<T, STLAllocator<T, GeneralAllocPolicy> >
VectorImpl;
353 return mList.begin();
362 return mList.rbegin();
382 return mList.const_iterator(n);
391 template <
class InputIterator>
412 return mList.front();
441 bool recalc = (pos !=
end());
450 template <
class InputIterator>
452 InputIterator f, InputIterator l)
454 mList.insert(pos, f, l);
460 mList.insert(pos, n, x);
497 bool operator<(const HashedVector<T>& b)
533 TRect( T
const & l, T
const & t, T
const & r, T
const & b )
610 std::ostream& operator<<(std::ostream& o, const TRect<T>& r)
612 o <<
"TRect<>(l:" << r.
left <<
", t:" << r.top <<
", r:" << r.right <<
", b:" << r.bottom <<
")";
650 Box(
size_t l,
size_t t,
size_t r,
size_t b ):
671 Box(
size_t l,
size_t t,
size_t ff,
size_t r,
size_t b,
size_t bb ):
749 : mPrefix(rhs.mPrefix), mNext(rhs.mNext) {}
757 std::ostringstream s;
758 s << mPrefix << mNext++;
791 template <
typename T>
808 std::pair<bool, T> ret;
816 ret.second =
mItems.front();
HashedVector(const HashedVector< T > &rhs)
VectorImpl::const_reference const_reference
iterator erase(iterator first, iterator last)
TRect & operator=(TRect const &o)
const_iterator end() const
uint32 _OgreExport FastHash(const char *data, int len, uint32 hashSoFar=0)
Fast general hashing algorithm.
bool operator==(const HashedVector< T > &b)
ManualCullingMode
Manual culling modes based on vertex normals.
Stencil shadow technique which renders all shadow volumes as a modulation after all the non-transpare...
HashedVector< Light * > LightList
Stencil shadow technique which renders each light as a separate additive pass to the scene...
Utility class to generate a sequentially numbered series of names.
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
WaveformType
Enumerates the wave types usable with the Ogre engine.
size_t getHeight() const
Get the height of this box.
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
Mask for additive shadows (not for direct use, use SHADOWTYPE_ enum instead)
size_t getWidth() const
Get the width of this box.
Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_POINT.
Texture-based shadow technique which involves a monochrome render-to-texture of the shadow caster and...
void resize(size_type n, const T &t=T())
The filter used when magnifying a texture.
Similar to FO_LINEAR, but compensates for the angle of the texture plane.
Equal to: min=FO_POINT, mag=FO_POINT, mip=FO_NONE.
VectorImpl::size_type size_type
Render window creation parameters.
NameGenerator(const String &prefix)
An angular wave with a constant increase / decrease speed with pointed peaks.
The filter used when determining the mipmap.
HashedVector(size_type n)
bool contains(const Box &def) const
Return true if the other box is a part of this one.
TRect(T const &l, T const &t, T const &r, T const &b)
Fog density increases linearly between the start and end distances.
Hardware culls triangles whose vertices are listed anticlockwise in the view.
Average of a 2x2 pixel area, denotes bilinear for MIN and MAG, trilinear for MIP. ...
VectorImpl::reference reference
reference at(size_type n)
HashedVector(size_type n, const T &t)
Box()
Parameterless constructor for setting the members manually.
virtual void clear()
Clear the pool.
void insert(iterator pos, InputIterator f, InputIterator l)
iterator erase(iterator pos)
const_reverse_iterator rend() const
void swap(HashedVector< T > &rhs)
VectorImpl::iterator iterator
size_type max_size() const
Equal to: min=FO_ANISOTROPIC, max=FO_ANISOTROPIC, mip=FO_LINEAR.
CullingMode
Hardware culling modes based on vertex winding.
TRect< Real > RealRect
Structure used to define a rectangle in a 2-D floating point space, subject to double / single floati...
TRect< long > Rect
Structure used to define a rectangle in a 2-D integer space.
reference operator[](size_type n)
HashedVector(InputIterator a, InputIterator b)
vector< RenderWindow * >::type RenderWindowList
Render window container.
Box(size_t l, size_t t, size_t r, size_t b)
Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and b...
Representation of a dynamic light source in the scene.
Structure used to define a box in a 3-D integer space.
VectorImpl::const_reverse_iterator const_reverse_iterator
Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_LINEAR.
Mask for integrated shadows (not for direct use, use SHADOWTYPE_ enum instead)
No filtering, used for FILT_MIP to turn off mipmapping.
ShadowTechnique
An enumeration of broad shadow techniques.
map< String, String >::type BinaryOptionList
Half of the time is spent at the min, half at the max with instant transition between.
Cull triangles whose normal is pointing away from the camera (default).
map< String, bool >::type UnaryOptionList
Mask for texture shadows (not for direct use, use SHADOWTYPE_ enum instead)
const_reverse_iterator rbegin() const
ShadeOptions
Light shading modes.
Template class describing a simple pool of items.
Solid polygons are rendered.
Gradual steady decrease from max to min over the period, with an instant return to max at the end...
Mask for stencil shadows (not for direct use, use SHADOWTYPE_ enum instead)
virtual std::pair< bool, T > removeItem()
Get the next item from the pool.
VectorImpl::difference_type difference_type
void push_back(const T &t)
uint32 getHash() const
Get the hash value.
void insert(iterator pos, size_type n, const T &x)
SortMode
Sort mode for billboard-set and particle-system.
Sort by direction of the camera.
#define OGRE_LOCK_AUTO_MUTEX
std::vector< T, STLAllocator< T, GeneralAllocPolicy > > VectorImpl
const_iterator begin() const
Sort by distance from the camera.
Only points are rendered.
FrameBufferType
Defines the frame buffer types.
Box(size_t l, size_t t, size_t ff, size_t r, size_t b, size_t bb)
Define a box from left, top, front, right, bottom and back coordinates.
Standard sine wave which smoothly changes from low to high and back again.
const_reference operator[](size_type n) const
Texture-based shadow technique which involves a render-to-texture of the shadow caster and a projecti...
Mask for modulative shadows (not for direct use, use SHADOWTYPE_ enum instead)
unsigned long long int getNext() const
Get the internal counter.
Gradual steady increase from min to max over the period with an instant return to min at the end...
iterator insert(iterator pos, const T &t)
NameValuePairList miscParams
VectorImpl::reverse_iterator reverse_iterator
uint32 HashCombine(uint32 hashSoFar, const T &data)
Combine hashes with same style as boost::hash_combine.
HashedVector< T > & operator=(const HashedVector< T > &rhs)
VectorImpl::const_iterator const_iterator
Fog density increases exponentially from the camera (fog = 1/e^(distance * density)) ...
Hardware culls triangles whose vertices are listed clockwise in the view (default).
const_reference back() const
The filter used when shrinking a texture.
unsigned long long int mNext
size_t getDepth() const
Get the depth of this box.
No culling so everything is sent to the hardware.
const_reference front() const
size_type capacity() const
VectorImpl::pointer pointer
PolygonMode
The polygon mode to use when rasterising.
TRect intersect(const TRect &rhs) const
Fog density increases at the square of FOG_EXP, i.e. even quicker (fog = 1/e^(distance * density)^2) ...
TRect & merge(const TRect &rhs)
reverse_iterator rbegin()
ClipResult
Generic result of clipping.
Wireframe models are rendered.
vector< RenderWindowDescription >::type RenderWindowDescriptionList
Render window creation parameters container.
void reset()
Reset the internal counter.
TRect< float > FloatRect
Structure used to define a rectangle in a 2-D floating point space.
const_reference at(size_type n) const
FilterOptions
Filtering options for textures / mipmaps.
Hardware never culls triangles and renders everything it receives.
map< String, String >::type AliasTextureNamePairList
Alias / Texture name pair (first = alias, second = texture name)
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
int TrackVertexColourType
An enumeration describing which material properties should track the vertex colours.
Cull triangles whose normal is pointing towards the camera.
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'...
NameGenerator(const NameGenerator &rhs)
virtual void addItem(const T &i)
Add a new item to the pool.
void addToHash(const T &newPtr) const
VectorImpl::value_type value_type
Everything was clipped away.
String generate()
Generate a new name.
TextureFilterOptions
High-level filtering options providing shortcuts to settings the minification, magnification and mip ...
void setNext(unsigned long long int val)
Manually set the internal counter (use caution)