TDME2
1.9.121
src
tdme
engine
subsystems
rendering
TransparentRenderPoint.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/engine/model/fwd-tdme.h
>
5
#include <
tdme/engine/model/Color4.h
>
6
#include <
tdme/engine/subsystems/rendering/fwd-tdme.h
>
7
#include <
tdme/math/fwd-tdme.h
>
8
#include <
tdme/math/Vector3.h
>
9
10
using
tdme::engine::model::Color4
;
11
using
tdme::math::Vector3
;
12
13
/**
14
* Transparent point to be rendered
15
* @author Andreas Drewke
16
* @version $Id$
17
*/
18
struct
tdme::engine::subsystems::rendering::TransparentRenderPoint
final
19
{
20
uint16_t
spriteIndex
;
21
Vector3
point
;
22
Color4
color
;
23
int
particleSystemType
;
24
void
*
particleSystem
;
25
26
/**
27
* Compare
28
* @param point1 point 1
29
* @param point2 point 2
30
*/
31
inline
static
bool
compare
(
TransparentRenderPoint
* point1,
TransparentRenderPoint
* point2) {
32
return
-point1->
point
.
getZ
() > -point2->
point
.
getZ
();
33
}
34
35
};
Color4.h
Vector3.h
tdme::engine::model::Color4
Color 4 definition.
Definition:
Color4.h:20
tdme::math::Vector3
3D vector 3 class
Definition:
Vector3.h:22
tdme::math::Vector3::getZ
float getZ() const
Definition:
Vector3.h:136
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
tdme::engine::subsystems::rendering::TransparentRenderPoint
Transparent point to be rendered.
Definition:
TransparentRenderPoint.h:19
tdme::engine::subsystems::rendering::TransparentRenderPoint::particleSystemType
int particleSystemType
Definition:
TransparentRenderPoint.h:23
tdme::engine::subsystems::rendering::TransparentRenderPoint::point
Vector3 point
Definition:
TransparentRenderPoint.h:21
tdme::engine::subsystems::rendering::TransparentRenderPoint::spriteIndex
uint16_t spriteIndex
Definition:
TransparentRenderPoint.h:20
tdme::engine::subsystems::rendering::TransparentRenderPoint::compare
static bool compare(TransparentRenderPoint *point1, TransparentRenderPoint *point2)
Compare.
Definition:
TransparentRenderPoint.h:31
tdme::engine::subsystems::rendering::TransparentRenderPoint::particleSystem
void * particleSystem
Definition:
TransparentRenderPoint.h:24
tdme::engine::subsystems::rendering::TransparentRenderPoint::color
Color4 color
Definition:
TransparentRenderPoint.h:22
tdme.h
Generated by
1.9.3