Skip to content

API Reference

Complete reference for every public function, struct, and enum in opengnm.


Reference Pages

Core Types

Page Header Contents
Types & Enums gnm_types.h 51 enums, constants, limits, draw arg structs
Error Handling gnm_error.h GnmError codes, message handler API
Data Formats gnm_dataformat.h GnmDataFormat, sceGnmDf*, GNM_FMT_* constants

Resource Descriptors

Page Header Contents
Buffer gnm_buffer.h GnmBuffer (0x10), create/get/set
Texture gnm_texture.h GnmTexture (0x20), create + 23 accessors
Sampler gnm_sampler.h GnmSampler (0x10)
Render Target gnm_rendertarget.h GnmRenderTarget (0x40)
Depth Render Target gnm_depthrendertarget.h GnmDepthRenderTarget (0x34)
Control Registers gnm_controls.h Blend, depth-stencil, primitive setup, viewport

Shaders

Page Header Contents
Shader gnm_shader.h Stage registers, fetch shader, input/export semantics
Shader Binary gnm_shaderbinary.h File header, VS/PS containers, binary info

Command Buffers

Page Header Contents
Command Buffer gnm_commandbuffer.h GnmCommandBuffer (0x40)
Draw Command Buffer gnm_drawcommandbuffer.h 63 sceGnmDrawCmd* functions

Runtime

Page Header Contents
Driver Runtime gnmdriver.h 265 sceGnm* functions (207+ public + stubs)
Surface Computation gpuaddr.h 19 sceGpa* functions
Platform platform.h GPU mode, buffer label
Helpers gnm_helpers.h VideoOut, direct memory, validation

Utilities

Page Header Contents
String Utilities gnm_strings.h 22 enum-to-string converters
Compatibility Layer compat/freegnm.h gnm*sceGnm* aliases

API Statistics

Category Count
Enums 63
Structs 45
Functions (total, including inline) 536
sceGnm* runtime functions 207+
sceGnmDrawCmd* functions 63
sceGpa* functions 19
#define constants 37