ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
Renderer.h File Reference

Renderer extends Object with ObjectivelyMVC's UI rendering layer. More...

#include <SDL3/SDL_gpu.h>
#include <Objectively/Object.h>
#include <Objectively/Vector.h>
#include <ObjectivelyGPU.h>
#include "Types.h"

Go to the source code of this file.

Data Structures

struct  MVC_Vertex
 Interleaved position + texcoord + color + rounded rect shape vertex for GPU upload. More...
 
struct  Renderer
 Renderer extends Object with ObjectivelyMVC's UI rendering layer. More...
 

Functions

OBJECTIVELYMVC_EXPORT Class * _Renderer (void)
 

Detailed Description

Renderer extends Object with ObjectivelyMVC's UI rendering layer.

Renderer provides the MVC-specific shaders, pipelines, vertex streaming, draw call queue, scissor state, and draw* helpers.

Definition in file Renderer.h.

Function Documentation

◆ _Renderer()

OBJECTIVELYMVC_EXPORT Class * _Renderer ( void  )

Definition at line 890 of file Renderer.c.

890 {
891 static Class *clazz;
892 static Once once;
893
894 do_once(&once, {
895 clazz = _initialize(&(const ClassDef) {
896 .name = "Renderer",
897 .superclass = _Object(),
898 .instanceSize = sizeof(Renderer),
899 .interfaceSize = sizeof(RendererInterface),
900 .initialize = initialize,
901 });
902 });
903
904 return clazz;
905}
static void initialize(Class *clazz)
Definition Renderer.c:855
Renderer extends Object with ObjectivelyMVC's UI rendering layer.
Definition Renderer.h:75