mirror of
https://github.com/NoelFB/blah.git
synced 2025-04-21 05:06:05 +08:00
24 lines
680 B
C
24 lines
680 B
C
|
#pragma once
|
||
|
#include <blah/graphics/graphics.h>
|
||
|
|
||
|
namespace Blah
|
||
|
{
|
||
|
namespace GraphicsBackend
|
||
|
{
|
||
|
bool init();
|
||
|
void shutdown();
|
||
|
|
||
|
const GraphicsInfo* info();
|
||
|
GraphicsRenderer renderer();
|
||
|
void frame();
|
||
|
void before_render();
|
||
|
void after_render();
|
||
|
void render(RenderCall* call);
|
||
|
void clear(const FrameBufferRef& target, uint32_t rgba);
|
||
|
|
||
|
TextureRef create_texture(int width, int height, TextureFilter filter, TextureWrap wrap_x, TextureWrap wrap_y, TextureFormat format);
|
||
|
FrameBufferRef create_framebuffer(int width, int height, const TextureFormat* attachments, int attachmentCount);
|
||
|
ShaderRef create_shader(const ShaderData* data);
|
||
|
MeshRef create_mesh();
|
||
|
}
|
||
|
}
|