* Load texture for rendering (framebuffer). * * @throws raylib::RaylibException Throws if failed to create the render texture. */
| 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). |
nothing calls this directly
no test coverage detected