DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
DekiEditor::EditorTexture::Backend Struct Reference

What the editor draws textures with. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/EditorTexture.h>

Public Attributes

uint32_t(*) create (int width, int height) = nullptr
void(*) destroy (uint32_t texture) = nullptr
ImTextureID(*) toImGui (uint32_t texture) = nullptr
void(*) update (uint32_t texture, int x, int y, int width, int height, Format format, const void *pixels, int rowPixels) = nullptr

Detailed Description

What the editor draws textures with.

The editor sets it at startup, once it has a window; until then, and in a headless editor, Create returns 0.

Member Data Documentation

◆ create

uint32_t(*) DekiEditor::EditorTexture::Backend::create(int width, int height) = nullptr

◆ destroy

void(*) DekiEditor::EditorTexture::Backend::destroy(uint32_t texture) = nullptr

◆ toImGui

ImTextureID(*) DekiEditor::EditorTexture::Backend::toImGui(uint32_t texture) = nullptr

◆ update

void(*) DekiEditor::EditorTexture::Backend::update(uint32_t texture, int x, int y, int width, int height, Format format, const void *pixels, int rowPixels) = nullptr

The documentation for this struct was generated from the following file: