sokol.framebuffer

Machine generated D bindings for Sokol library.

Source header: sokol_framebuffer.h Module: sokol.framebuffer

Do not edit manually; regenerate using gen_d.py.

Members

Enums

Format
enum Format

sfb_format

ResourceState
enum ResourceState

sfb_resource_state

Functions

destroyFramebuffer
void destroyFramebuffer(Framebuffer fb)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFramebuffer
Framebuffer makeFramebuffer(FramebufferDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
queryFramebufferDesc
FramebufferDesc queryFramebufferDesc(Framebuffer fb)
Undocumented in source. Be warned that the author may not have intended to support it.
queryFramebufferInfo
FramebufferInfo queryFramebufferInfo(Framebuffer fb)
Undocumented in source. Be warned that the author may not have intended to support it.
queryFramebufferState
ResourceState queryFramebufferState(Framebuffer fb)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Framebuffer fb)
Undocumented in source. Be warned that the author may not have intended to support it.
renderEx
void renderEx(Framebuffer fb, RenderDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
bool resize(Framebuffer fb, ResizeDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup(Desc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
sfb_destroy_framebuffer
void sfb_destroy_framebuffer(Framebuffer fb)

destroy framebuffer object

sfb_make_framebuffer
Framebuffer sfb_make_framebuffer(FramebufferDesc* desc)

create a framebuffer object

sfb_query_framebuffer_desc
FramebufferDesc sfb_query_framebuffer_desc(Framebuffer fb)

query the framebuffer desc, with default values patched in

sfb_query_framebuffer_info
FramebufferInfo sfb_query_framebuffer_info(Framebuffer fb)

query current framebuffer properties

sfb_query_framebuffer_state
ResourceState sfb_query_framebuffer_state(Framebuffer fb)

query framebuffer resource state (valid or failed)

sfb_render
void sfb_render(Framebuffer fb)

draw framebuffer content with default shader (must be called inside a sokol-gfx render pass)

sfb_render_ex
void sfb_render_ex(Framebuffer fb, RenderDesc* desc)

draw framebuffer content with injected shader (must be called inside a sokol-gfx render pass)

sfb_resize
bool sfb_resize(Framebuffer fb, ResizeDesc* desc)

resize internal images (no-op if resize isn't needed), return true when images had to be re-created

sfb_setup
void sfb_setup(Desc* desc)

setup sokol-framebuffer

sfb_shutdown
void sfb_shutdown()

shutdown sokol-framebuffer

sfb_update
void sfb_update(Framebuffer fb, UpdateDesc* desc)

update framebuffer and/or color palette content (must be called outside any sokol-gfx pass)

shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(Framebuffer fb, UpdateDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

invalid_id
enum invalid_id;

Public constants.

Structs

Allocator
struct Allocator

sfb_allocator

Desc
struct Desc

Initialization parameters passed into sfb_setup(). You should at least provide a logging function, otherwise you won't see any error logging.

Framebuffer
struct Framebuffer

sfb_framebuffer

FramebufferDesc
struct FramebufferDesc

sfb_framebuffer_desc

FramebufferInfo
struct FramebufferInfo

sfb_framebuffer_info

Logger
struct Logger

sfb_logger

Rect
struct Rect

sfb_rect

RenderDesc
struct RenderDesc

sfb_render_overrides

RenderPassDesc
struct RenderPassDesc

sfb_render_pass_desc

ResizeDesc
struct ResizeDesc

sfb_resize_desc

TextureInfo
struct TextureInfo

sfb_texture_info

UpdateDesc
struct UpdateDesc

sfb_update_desc

Meta