ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
Framebuffer.c File Reference
#include <assert.h>
#include "Framebuffer.h"
#include "RenderDevice.h"
#include "Texture.h"

Macros

#define _Class   _Framebuffer
 

Functions

static void dealloc (Object *self)
 
static SDL_GPUColorTargetInfo colorTargetInfo (const Framebuffer *self, Uint32 index, SDL_GPULoadOp loadOp, SDL_GPUStoreOp storeOp, const SDL_FColor *clearColor)
 
static SDL_GPUDepthStencilTargetInfo depthTargetInfo (const Framebuffer *self, SDL_GPULoadOp loadOp, SDL_GPUStoreOp storeOp, float clearDepth)
 
static FramebufferinitWithDevice (Framebuffer *self, RenderDevice *device, const GPU_FramebufferCreateInfo *info)
 
static bool resize (Framebuffer *self, const SDL_Size *size)
 
static TextureresolveColorTexture (const Framebuffer *self, Uint32 index)
 
static TextureresolveDepthTexture (const Framebuffer *self)
 
static void initialize (Class *clazz)
 
Class * _Framebuffer (void)
 

Macro Definition Documentation

◆ _Class

#define _Class   _Framebuffer

Function Documentation

◆ _Framebuffer()

Class * _Framebuffer ( void  )

◆ colorTargetInfo()

static SDL_GPUColorTargetInfo colorTargetInfo ( const Framebuffer self,
Uint32  index,
SDL_GPULoadOp  loadOp,
SDL_GPUStoreOp  storeOp,
const SDL_FColor *  clearColor 
)
static

◆ dealloc()

static void dealloc ( Object *  self)
static
See also
Object::dealloc(Object *)

◆ depthTargetInfo()

static SDL_GPUDepthStencilTargetInfo depthTargetInfo ( const Framebuffer self,
SDL_GPULoadOp  loadOp,
SDL_GPUStoreOp  storeOp,
float  clearDepth 
)
static

◆ initialize()

static void initialize ( Class *  clazz)
static
See also
Class::initialize(Class *)

◆ initWithDevice()

static Framebuffer * initWithDevice ( Framebuffer self,
RenderDevice device,
const GPU_FramebufferCreateInfo info 
)
static

◆ resize()

static bool resize ( Framebuffer self,
const SDL_Size size 
)
static

◆ resolveColorTexture()

static Texture * resolveColorTexture ( const Framebuffer self,
Uint32  index 
)
static

◆ resolveDepthTexture()

static Texture * resolveDepthTexture ( const Framebuffer self)
static