Rename TEXTURE_FORMAT_32F to TEXTURE_FORMAT_FLOAT_32.
This commit is contained in:
parent
e286d33c35
commit
cdfce62c90
@ -162,7 +162,7 @@ swap_buffers.argtypes = (
|
|||||||
TEXTURE_FORMAT_SRGB8_A8 = 0
|
TEXTURE_FORMAT_SRGB8_A8 = 0
|
||||||
TEXTURE_FORMAT_RGBA8 = 1
|
TEXTURE_FORMAT_RGBA8 = 1
|
||||||
TEXTURE_FORMAT_RGB10_A2 = 2
|
TEXTURE_FORMAT_RGB10_A2 = 2
|
||||||
TEXTURE_FORMAT_32F = 3
|
TEXTURE_FORMAT_FLOAT_32 = 3
|
||||||
|
|
||||||
TEXTURE_FORMAT_TYPECODE = ('B', 'B', 'I', 'f')
|
TEXTURE_FORMAT_TYPECODE = ('B', 'B', 'I', 'f')
|
||||||
TEXTURE_FORMAT_NELEMS = (4, 4, 1, 1)
|
TEXTURE_FORMAT_NELEMS = (4, 4, 1, 1)
|
||||||
|
@ -31,7 +31,7 @@ enum rk_texture_format : rk_uint {
|
|||||||
RK_TEXTURE_FORMAT_SRGB8_A8 = 0,
|
RK_TEXTURE_FORMAT_SRGB8_A8 = 0,
|
||||||
RK_TEXTURE_FORMAT_RGBA8 = 1,
|
RK_TEXTURE_FORMAT_RGBA8 = 1,
|
||||||
RK_TEXTURE_FORMAT_RGB10_A2 = 2,
|
RK_TEXTURE_FORMAT_RGB10_A2 = 2,
|
||||||
RK_TEXTURE_FORMAT_32F = 3
|
RK_TEXTURE_FORMAT_FLOAT_32 = 3
|
||||||
};
|
};
|
||||||
|
|
||||||
enum rk_texture_flags : rk_uint {
|
enum rk_texture_flags : rk_uint {
|
||||||
|
@ -171,7 +171,7 @@ rk_texture_t rk_create_texture(
|
|||||||
source_format = GL_RGBA;
|
source_format = GL_RGBA;
|
||||||
source_type = GL_UNSIGNED_INT_2_10_10_10_REV;
|
source_type = GL_UNSIGNED_INT_2_10_10_10_REV;
|
||||||
break;
|
break;
|
||||||
case RK_TEXTURE_FORMAT_32F:
|
case RK_TEXTURE_FORMAT_FLOAT_32:
|
||||||
internal_format = GL_R32F;
|
internal_format = GL_R32F;
|
||||||
source_format = GL_RED;
|
source_format = GL_RED;
|
||||||
source_type = GL_FLOAT;
|
source_type = GL_FLOAT;
|
||||||
|
Loading…
Reference in New Issue
Block a user