jade-engine
0.0
|
#include <LineStrip.h>
Public Attributes | |
ObjectLayer | layer |
std::vector< Vector2D_i32 > | initialPoints |
SDL_Color | color |
int32_t | z |
Parameters required to create a LineStrip game object.
Template to copy:
SDL_Color JadeEngine::LineStripParams::color |
Color that all the lines in LineStrip will be rendered with.
std::vector<Vector2D_i32> JadeEngine::LineStripParams::initialPoints |
Points defining the LineStrip. The LineScript will consist of initialPoints.size()-1
lines.
The points are relative to the LineStrip's transform
center position (LineStrip::transform->GetCenterPosition()
). This means the whole strip can be moved around by changing the transform
.
Each point is a both a start and an end of a line segment apart from the very first and very last points which are only start and end points respectively. Assuming three different points are passed: A, B, C in that order than the LineStrip will look like A-B-C. In order to create a closed loop, a copy of the very first point should the very last point.
ObjectLayer JadeEngine::LineStripParams::layer |
Layer that will the LineStrip belong to.
int32_t JadeEngine::LineStripParams::z |
Z coordinate of the Sprite.
The game objects with higher Z coordinate will be drawn over the ones with lower one.