Move texture defaults behind renderer gl

This commit is contained in:
2026-06-02 08:51:34 +02:00
parent 8a92bc973b
commit a12a3454c4
9 changed files with 118 additions and 10 deletions

View File

@@ -61,7 +61,9 @@ public:
void copy(const RTT& source, const glm::vec4& rect);
RTT clone() const noexcept;
bool resize(int width, int height);
bool create(int width, int height, int tex = -1, GLint internal_format = GL_RGBA8, bool depth_buffer = false);
bool create(int width, int height);
bool create(int width, int height, int tex);
bool create(int width, int height, int tex, GLint internal_format, bool depth_buffer = false);
bool recreate() { return create(w, h); }
void clear(glm::vec4 color = glm::vec4(0));
void clear_mask(glm::bool4 mask, glm::vec4 color = glm::vec4(0));