MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Load

Method Load

include/RenderTextureUnmanaged.hpp:70–75  ·  view source on GitHub ↗

* Load texture for rendering (framebuffer). * * @throws raylib::RaylibException Throws if failed to create the render texture. */

Source from the content-addressed store, hash-verified

68 * @throws raylib::RaylibException Throws if failed to create the render texture.
69 */
70 void Load(int width, int height) {
71 set(::LoadRenderTexture(width, height));
72 if (!IsValid()) {
73 throw RaylibException("Failed to create RenderTexture");
74 }
75 }
76
77 /**
78 * Unload render texture from GPU memory (VRAM).

Callers

nothing calls this directly

Calls 2

RaylibExceptionClass · 0.85
IsValidFunction · 0.70

Tested by

no test coverage detected