Skip to content

Namespace Apogee.Core.Graphics

Classes

DebugColor

Colors for : bytes r, g, b, a packed as a little-endian (0xAABBGGRR).

DebugDraw

Immediate-mode debug drawing: lines and triangles in world positions that live for one frame. Anything may add to it (gameplay, physics, tools) with no knowledge of rendering; the renderer draws what is in it when a frame is rendered and the owner then s it for the next. Positions are double precision, like the world's, and are turned into offsets from the camera only when drawn. The number of lines and triangles is capped (); what does not fit is counted in and left out, so a loop that draws too much costs a frame's detail and not the program's memory.

FormatInfo

Sizes and kinds of the formats the engine uses.

Structs

DebugLine

A line to draw, in world positions. The color is bytes r, g, b, a (see ). The layout is that of Jolt's AjDebugLine (56 bytes), so physics copies its lines in as they are.

DebugTriangle

A triangle to draw, in world positions, wound counter-clockwise seen from outside. The layout is that of Jolt's AjDebugTriangle (80 bytes).

Enums

PixelFormat

A texel format, as the engine names it. The numbers are Vulkan's VkFormat numbers, which are also the vkFormat field of a KTX 2 file, so the Vulkan backend casts and a KTX 2 file is read by a cast; another backend (Metal) maps the ones it supports with a table. Only the core formats are here (no extension formats).