From cdfce62c909cfeb50a7dec261c47331a5573e44e Mon Sep 17 00:00:00 2001 From: Roz K Date: Sun, 25 Dec 2022 04:20:19 +0100 Subject: [PATCH] Rename TEXTURE_FORMAT_32F to TEXTURE_FORMAT_FLOAT_32. --- __init__.py | 2 +- cpp/render.hpp | 2 +- cpp/render/render_opengles.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index c37b325..9626fbc 100644 --- a/__init__.py +++ b/__init__.py @@ -162,7 +162,7 @@ swap_buffers.argtypes = ( TEXTURE_FORMAT_SRGB8_A8 = 0 TEXTURE_FORMAT_RGBA8 = 1 TEXTURE_FORMAT_RGB10_A2 = 2 -TEXTURE_FORMAT_32F = 3 +TEXTURE_FORMAT_FLOAT_32 = 3 TEXTURE_FORMAT_TYPECODE = ('B', 'B', 'I', 'f') TEXTURE_FORMAT_NELEMS = (4, 4, 1, 1) diff --git a/cpp/render.hpp b/cpp/render.hpp index 0d46b6a..2307cd3 100644 --- a/cpp/render.hpp +++ b/cpp/render.hpp @@ -31,7 +31,7 @@ enum rk_texture_format : rk_uint { RK_TEXTURE_FORMAT_SRGB8_A8 = 0, RK_TEXTURE_FORMAT_RGBA8 = 1, RK_TEXTURE_FORMAT_RGB10_A2 = 2, - RK_TEXTURE_FORMAT_32F = 3 + RK_TEXTURE_FORMAT_FLOAT_32 = 3 }; enum rk_texture_flags : rk_uint { diff --git a/cpp/render/render_opengles.cpp b/cpp/render/render_opengles.cpp index 6c28863..ba28fe8 100644 --- a/cpp/render/render_opengles.cpp +++ b/cpp/render/render_opengles.cpp @@ -171,7 +171,7 @@ rk_texture_t rk_create_texture( source_format = GL_RGBA; source_type = GL_UNSIGNED_INT_2_10_10_10_REV; break; - case RK_TEXTURE_FORMAT_32F: + case RK_TEXTURE_FORMAT_FLOAT_32: internal_format = GL_R32F; source_format = GL_RED; source_type = GL_FLOAT;