Urho3D
Public Member Functions | Public Attributes
Urho3D::Batch Struct Reference

Queued 3D geometry draw call. More...

#include <Batch.h>

Inheritance diagram for Urho3D::Batch:
Urho3D::BatchGroup

List of all members.

Public Member Functions

 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=true) const
 Prepare for rendering.
void Draw (View *view) const
 Prepare and draw.

Public Attributes

unsigned long long sortKey_
 State sorting key.
float distance_
 Distance from camera.
Geometrygeometry_
 Geometry.
Materialmaterial_
 Material.
const Matrix3x4worldTransform_
 Object's world transform.
Cameracamera_
 Camera.
Zonezone_
 Zone.
LightBatchQueuelightQueue_
 Light properties.
Passpass_
 Material pass.
ShaderVariationvertexShader_
 Vertex shader.
ShaderVariationpixelShader_
 Pixel shader.
const float * shaderData_
 Vertex shader data.
unsigned shaderDataSize_
 Vertex shader data size in floats.
GeometryType geometryType_
 Geometry type.
bool overrideView_
 Override view transform flag.
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

Queued 3D geometry draw call.


The documentation for this struct was generated from the following files: