Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
opengl_enums.h
Go to the documentation of this file.
1#pragma once
2
4
5#include "ThirdParty/glad2.h"
6
7#include <Common/primitive_type.h>
8
10{
11
12GLenum to_internal_format(ESizedPixelFormat sizedFormat);
13GLenum to_internal_format(EPixelFormat unsizedFormat);
14GLenum to_color_attachment(uint32 slotIndex);
15GLenum to_data_type(EPixelComponent componentType);
16GLenum to_data_type(EStorageElement elementType);
17GLenum to_primitive_type(EMeshDrawMode drawMode);
18GLenum to_shader_type(EShadingStage shadingStage);
19GLenum to_filter_type(EFilterMode filterMode);
20GLenum to_wrap_type(EWrapMode wrapMode);
21
22GLenum to_base_format(GLenum internalFormat);
23uint32 num_pixel_components(GLenum internalFormat);
24bool is_color_format(GLenum internalFormat);
25
26}// end namespace ph::editor::ghi::opengl
Definition opengl_enums.cpp:6
GLenum to_wrap_type(EWrapMode wrapMode)
Definition opengl_enums.cpp:206
GLenum to_filter_type(EFilterMode filterMode)
Definition opengl_enums.cpp:190
GLenum to_data_type(EPixelComponent componentType)
Definition opengl_enums.cpp:56
GLenum to_base_format(GLenum internalFormat)
Definition opengl_enums.cpp:222
GLenum to_internal_format(ESizedPixelFormat sizedFormat)
Definition opengl_enums.cpp:8
GLenum to_primitive_type(EMeshDrawMode drawMode)
Definition opengl_enums.cpp:140
bool is_color_format(GLenum internalFormat)
Definition opengl_enums.cpp:299
GLenum to_color_attachment(uint32 slotIndex)
Definition opengl_enums.cpp:39
uint32 num_pixel_components(GLenum internalFormat)
Definition opengl_enums.cpp:262
GLenum to_shader_type(EShadingStage shadingStage)
Definition opengl_enums.cpp:171
ESizedPixelFormat
Combined pixel layout and component type information. Unless stated explicitly, the characters RGB do...
Definition ghi_enums.h:19
EPixelFormat
Definition ghi_enums.h:31
EWrapMode
Definition ghi_enums.h:64
EStorageElement
Definition ghi_enums.h:70
EFilterMode
Definition ghi_enums.h:58
EShadingStage
Definition ghi_enums.h:104
EMeshDrawMode
Definition ghi_enums.h:93
EPixelComponent
Definition ghi_enums.h:42