Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
primitives.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #ifndef BLAM
6 #define BLAM
7 #endif
8 
10 {
11  float x;
12  float y;
13  float z;
14  uint32_t abgr;
15 };
16 
25 {
33  BLAM void DrawCuboid(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale);
34 
46  BLAM void DrawCylinder(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale, int resolution, int radius_top, int radius_bottom);
47 
48  BLAM void DrawRectangle(BlamVector2 position, BlamVector2 size, float rotation);
49 }
BlamRendering::BGFX::Primitives
Namespace containing functions for simple drawing of 2D and 3D primitives.
Definition: primitives.h:24
BlamRendering::BGFX::Primitives::DrawRectangle
BLAM void DrawRectangle(BlamVector2 position, BlamVector2 size, float rotation)
Definition: rectangle.cpp:12
world.h
PrimitiveGenericVertex
Definition: primitives.h:9
BLAM
#define BLAM
Definition: primitives.h:6
BlamRendering::BGFX::Primitives::DrawCuboid
BLAM void DrawCuboid(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale)
Renders a cuboid to the screen.
Definition: cuboid.cpp:12
PrimitiveGenericVertex::x
float x
Definition: primitives.h:11
BlamRendering::BGFX::Primitives::DrawCylinder
BLAM void DrawCylinder(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale, int resolution, int radius_top, int radius_bottom)
Renders a cylinder to the screen.
Definition: cylinder.cpp:28
PrimitiveGenericVertex::y
float y
Definition: primitives.h:12
PrimitiveGenericVertex::abgr
uint32_t abgr
Definition: primitives.h:14
PrimitiveGenericVertex::z
float z
Definition: primitives.h:13