Urho3D::BatchGroup Struct Reference

Instanced 3D geometry draw call. More...

#include <Batch.h>

Inheritance diagram for Urho3D::BatchGroup:
Collaboration diagram for Urho3D::BatchGroup:

Public Member Functions

 BatchGroup ()
 Construct with defaults.
 BatchGroup (const Batch &batch)
 Construct from a batch.
 ~BatchGroup ()
void AddTransforms (const Batch &batch)
 Add world transform(s) from a batch.
void SetTransforms (void *lockedData, unsigned &freeIndex)
 Pre-set the instance transforms. Buffer must be big enough to hold all transforms.
void Draw (View *view, bool allowDepthWrite) const
 Prepare and draw.
- Public Member Functions inherited from Urho3D::Batch
 Batch ()
 Construct with defaults.
 Batch (const SourceBatch &rhs)
 Construct from a drawable's source batch.
void CalculateSortKey ()
 Calculate state sorting key, which consists of base pass flag, light, pass and geometry.
void Prepare (View *view, bool setModelTransform, bool allowDepthWrite) const
 Prepare for rendering.
void Draw (View *view, bool allowDepthWrite) const
 Prepare and draw.

Public Attributes

PODVector< InstanceDatainstances_
 Instance data.
unsigned startIndex_
 Instance stream start index, or M_MAX_UNSIGNED if transforms not pre-set.
- Public Attributes inherited from Urho3D::Batch
unsigned long long sortKey_
 State sorting key.
float distance_
 Distance from camera.
const Matrix3x4worldTransform_
 World transform(s). For a skinned model, these are the bone transforms.
unsigned numWorldTransforms_
 Number of world transforms.
 Light properties.
 Material pass.
 Vertex shader.
 Pixel shader.
GeometryType geometryType_
 Geometry type.
bool isBase_
 Base batch flag. This tells to draw the object fully without light optimizations.
unsigned char lightMask_
 8-bit light mask for stencil marking in deferred rendering.

Detailed Description

Instanced 3D geometry draw call.

The documentation for this struct was generated from the following files:
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Graphics/Batch.h
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Graphics/Batch.cpp