TDME2
1.9.121
src
tdme
engine
subsystems
rendering
TransparentRenderFace.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/engine/subsystems/rendering/fwd-tdme.h
>
5
6
using
tdme::engine::subsystems::rendering::Object3DNode
;
7
8
/**
9
* Transparent face to be rendered
10
* @author Andreas Drewke
11
* @version $Id$
12
*/
13
struct
tdme::engine::subsystems::rendering::TransparentRenderFace
final
14
{
15
Object3DNode
*
object3DNode
;
16
int32_t
facesEntityIdx
;
17
int32_t
faceIdx
;
18
float
distanceFromCamera
;
19
20
/**
21
* Compare
22
* @param face1 face 1
23
* @param face2 face 2
24
*/
25
inline
static
bool
compare
(
TransparentRenderFace
* face1,
TransparentRenderFace
* face2) {
26
return
face1->
distanceFromCamera
> face2->
distanceFromCamera
;
27
}
28
29
};
tdme::engine::subsystems::rendering::Object3DNode
Object 3d node specifically for rendering.
Definition:
Object3DNode.h:39
fwd-tdme.h
tdme::engine::subsystems::rendering::TransparentRenderFace
Transparent face to be rendered.
Definition:
TransparentRenderFace.h:14
tdme::engine::subsystems::rendering::TransparentRenderFace::object3DNode
Object3DNode * object3DNode
Definition:
TransparentRenderFace.h:15
tdme::engine::subsystems::rendering::TransparentRenderFace::distanceFromCamera
float distanceFromCamera
Definition:
TransparentRenderFace.h:18
tdme::engine::subsystems::rendering::TransparentRenderFace::faceIdx
int32_t faceIdx
Definition:
TransparentRenderFace.h:17
tdme::engine::subsystems::rendering::TransparentRenderFace::facesEntityIdx
int32_t facesEntityIdx
Definition:
TransparentRenderFace.h:16
tdme::engine::subsystems::rendering::TransparentRenderFace::compare
static bool compare(TransparentRenderFace *face1, TransparentRenderFace *face2)
Compare.
Definition:
TransparentRenderFace.h:25
tdme.h
Generated by
1.9.3