mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Improvement] (All): Remove redundant code.
This commit is contained in:
@@ -9,7 +9,7 @@ namespace MG_GL::GL {
|
||||
const FramebufferObject& fbo,
|
||||
MG_Diligent::GLFramebufferInfo& fbInfo);
|
||||
|
||||
inline bool IsSamplerType(GLenum type) {
|
||||
bool IsSamplerType(GLenum type) {
|
||||
switch (type) {
|
||||
case GL_SAMPLER_2D:
|
||||
case GL_SAMPLER_3D:
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "../../../../Includes.h"
|
||||
|
||||
namespace MG_GL::GL {
|
||||
bool IsSamplerType(GLenum type);
|
||||
|
||||
void DrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices);
|
||||
void DrawArrays(GLenum mode, GLint first, GLsizei count);
|
||||
void DrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
|
||||
|
||||
@@ -8,21 +8,6 @@
|
||||
#include "../../../../Includes.h"
|
||||
|
||||
namespace MG_GL::GL {
|
||||
inline bool IsSamplerType(GLenum type) {
|
||||
switch (type) {
|
||||
case GL_SAMPLER_2D:
|
||||
case GL_SAMPLER_3D:
|
||||
case GL_SAMPLER_CUBE:
|
||||
case GL_SAMPLER_2D_SHADOW:
|
||||
case GL_SAMPLER_2D_ARRAY:
|
||||
case GL_SAMPLER_2D_ARRAY_SHADOW:
|
||||
case GL_SAMPLER_CUBE_SHADOW:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
inline size_t GetUniformSize(GLenum type) {
|
||||
switch (type) {
|
||||
case GL_FLOAT: return sizeof(float);
|
||||
|
||||
Reference in New Issue
Block a user