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 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 522 of file Renderer.c.

522 {
523 static Class *clazz;
524 static Once once;
525
526 do_once(&once, {
527 clazz = _initialize(&(const ClassDef) {
528 .name = "Renderer",
529 .superclass = _Object(),
530 .instanceSize = sizeof(Renderer),
531 .interfaceOffset = offsetof(Renderer, interface),
532 .interfaceSize = sizeof(RendererInterface),
534 });
535 });
536
537 return clazz;
538}
static void initialize(Class *clazz)
Definition Renderer.c:496
Renderer extends Object with ObjectivelyMVC's UI rendering layer.
Definition Renderer.h:70