TDME2 1.9.121
TransparentRenderPoint.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
8#include <tdme/math/Vector3.h>
9
12
13/**
14 * Transparent point to be rendered
15 * @author Andreas Drewke
16 * @version $Id$
17 */
19{
20 uint16_t spriteIndex;
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};
Color 4 definition.
Definition: Color4.h:20
3D vector 3 class
Definition: Vector3.h:22
float getZ() const
Definition: Vector3.h:136
static bool compare(TransparentRenderPoint *point1, TransparentRenderPoint *point2)
Compare.