Move texture defaults behind renderer gl
This commit is contained in:
18
src/rtt.cpp
18
src/rtt.cpp
@@ -236,6 +236,24 @@ RTT RTT::clone() const noexcept
|
||||
return dup;
|
||||
}
|
||||
|
||||
bool RTT::create(int width, int height)
|
||||
{
|
||||
return create(
|
||||
width,
|
||||
height,
|
||||
-1,
|
||||
static_cast<GLint>(pp::renderer::gl::rgba8_internal_format()));
|
||||
}
|
||||
|
||||
bool RTT::create(int width, int height, int tex)
|
||||
{
|
||||
return create(
|
||||
width,
|
||||
height,
|
||||
tex,
|
||||
static_cast<GLint>(pp::renderer::gl::rgba8_internal_format()));
|
||||
}
|
||||
|
||||
bool RTT::create(int width, int height, int tex/* = -1*/, GLint internal_format, bool depth_buffer /*= false*/)
|
||||
{
|
||||
GLenum status = 0;
|
||||
|
||||
Reference in New Issue
Block a user