|
| enum class | ViewportStyle { black_bars
, extended
} |
| |
| enum class | Align {
top_left
, top_center
, top_right
, baseline_left
,
baseline_center
, baseline_right
, bottom_left
, bottom_center
,
bottom_right
} |
| |
| enum class | BlurType { horizontal
, vertical
} |
| |
| enum class | IsGauss { no
, yes
} |
| |
| enum class | TransformSource { TransformSource::Uniform
, TransformSource::Instanced_mat4
} |
| | Enum describing on how the model transform is provided. More...
|
| |
| enum class | PostProcSetup { PostProcSetup::none = 0
, PostProcSetup::factor = 1 << 1
, PostProcSetup::resolution = 1 << 2
, PostProcSetup::time = 1 << 3
} |
| | Bitmask for what features each postproc shader wants. More...
|
| |
| enum class | UseTransparency { UseTransparency::yes
, UseTransparency::no
} |
| | A "named boolean". More...
|
| |
| enum class | Blend {
Blend::zero
, Blend::one
, Blend::src_color
, Blend::one_minus_src_color
,
Blend::dst_color
, Blend::one_minus_dst_color
, Blend::src_alpha
, Blend::one_minus_src_alpha
,
Blend::dst_alpha
, Blend::one_minus_dst_alpha
, Blend::constant_color
, Blend::one_minus_constant_color
,
Blend::constant_alpha
, Blend::one_minus_constant_alpha
, Blend::src_alpha_saturate
, Blend::src1_color
,
Blend::one_minus_src1_color
, Blend::src1_alpha
, Blend::one_minus_src1_alpha
} |
| |
| enum class | Compare {
Compare::always
, Compare::never
, Compare::less
, Compare::equal
,
Compare::less_equal
, Compare::greater
, Compare::not_equal
, Compare::greater_equal
} |
| |
| enum class | CullFace { CullFace::front
, CullFace::back
, CullFace::front_and_back
} |
| |
| enum class | RenderMode { RenderMode::fill
, RenderMode::line
, RenderMode::point
} |
| |
| enum class | StencilAction {
StencilAction::keep
, StencilAction::zero
, StencilAction::replace
, StencilAction::increase
,
StencilAction::increase_wrap
, StencilAction::decrease
, StencilAction::decrease_wrap
, StencilAction::invert
} |
| |
| enum class | TextureEdge { TextureEdge::clamp
, TextureEdge::repeat
} |
| |
| enum class | TextureRenderStyle { TextureRenderStyle::pixel
, TextureRenderStyle::mipmap
, TextureRenderStyle::linear
} |
| |
| enum class | Transparency { Transparency::include
, Transparency::exclude
} |
| |
| enum class | ColorData { ColorData::color_data
, ColorData::non_color_data
, ColorData::dont_care
} |
| |
| enum class | DepthBits { DepthBits::use_none
, DepthBits::use_16
, DepthBits::use_24
, DepthBits::use_32
} |
| | The number of bits to use for the depth buffer. More...
|
| |
| enum class | ColorBitsPerPixel { ColorBitsPerPixel::use_depth
, ColorBitsPerPixel::use_8
, ColorBitsPerPixel::use_16
, ColorBitsPerPixel::use_32
} |
| | The number of bits/pixel to use for the color buffer. More...
|
| |
| enum class | Billboarding {
Billboarding::none
, Billboarding::screen
, Billboarding::screen_fast
, Billboarding::axial_y
,
Billboarding::axial_y_fast
} |
| | Defines the billboarding algorithm to use. More...
|
| |
|
| CameraVectors | create_vectors (const Camera &camera) |
| | Capture the current local space of the camera.
|
| |
| m4 | create_view_from_world_mat (const v3 &pos, const CameraVectors &cv) |
| |
| CompiledCamera | compile (const Camera &, const Size &window_size) |
| | "Compile" a camera to a perspective so it can be used in rendering.
|
| |
| CompiledCamera | compile (const OrthoCamera &, const Size &window_size) |
| | "Compile" a camera to an orthographic view so it can be used in rendering.
|
| |
| v2 | screen_from_world (const CompiledCamera &cam, const v3 &world_pos, const v2 &resolution) |
| | Calculate the screen coordinate of a 3d world position.
|
| |
| RenderLayer2 | with_layer2 (const RenderCommand &rc, const LayoutData &ld) |
| |
| RenderLayer3 | with_layer3 (const RenderCommand &rc, const LayoutData &ld) |
| |
| Layer | with_layer (const InputCommand &rc, const LayoutData &ld) |
| |
| RenderLayer2 | with_layer2 (const RenderCommand &rc, const LerpData &ld) |
| |
| RenderLayer3 | with_layer3 (const RenderCommand &rc, const LerpData &ld) |
| |
| Layer | with_layer (const InputCommand &rc, const LerpData &ld) |
| |
| CompiledMesh | compile_mesh (DEBUG_LABEL_ARG_MANY const core::Mesh &mesh, const core::CompiledGeomVertexAttributes &geom_layout) |
| |
| void | draw_frustum (DebugRender *debug, const CompiledCamera &camera, const Rgb &color) |
| |
| v3 | vec_from_lin (const Lin_rgb &lin) |
| |
| void | setup_opengl_debug () |
| |
| GLenum | glenum_from_int (int i) |
| |
| GLuint | gluint_from_int (int i) |
| |
| GLsizeiptr | glsizeiptr_from_sizet (std::size_t t) |
| |
| GLsizei | glsizei_from_sizet (std::size_t t) |
| |
| u32 | create_buffer () |
| |
| void | destroy_buffer (u32 vbo) |
| |
| u32 | create_vertex_array () |
| |
| void | destroy_vertex_array (u32 vao) |
| |
| void | set_gl_viewport (const Size &sz) |
| |
| void | set_gl_viewport (const Rect &r) |
| |
| constexpr void | opengl_nop () |
| |
| void | setup_textures (ShaderProgram *shader, const std::vector< Uniform * > &uniform_list) |
| | Sets up textures for a shader program.
|
| |
| bool | is_bound_for_shader (const std::unordered_set< core::VertexType > &debug_geom_shader_types) |
| | Verifies if the current shader matches the required vertex types.
|
| |
| bool | is_shader_bound (unsigned int program) |
| | Checks if a specific shader program is currently active.
|
| |
| void | clear_shader_program () |
| | Clears the current open gl shader program binding.
|
| |
| std::string | generate_blur (std::string_view src, const BlurOptions &options) |
| |
| ShaderSource_withLayout | load_shader_source (const ShaderSource &source, const ShaderOptions &options, const std::string &uniform_buffer_source) |
| |
| ShaderSource | load_skybox_source (const ShaderSource &source, const std::string &uniform_buffer_source) |
| |
| PostProcSetup | operator| (PostProcSetup lhs, PostProcSetup rhs) |
| |
| const LoadedShader_Unlit & | shader_from_container (const LoadedShader_Unlit_Container &container, const RenderContext &rc) |
| | Select the correct sub shader from a container.
|
| |
| const LoadedShader_Default & | shader_from_container (const LoadedShader_Default_Container &container, const RenderContext &rc) |
| | Select the correct sub shader from a container.
|
| |
| ShaderResource | load_shaders (const Assets &assets, const CameraUniformBuffer &desc, const RenderSettings &settings, const FullScreenGeom &full_screen) |
| |
| CompiledCamera | compile_the_shadow_camera (const Camera &camera, const Size &window_size, const DirectionalLight &light, const RenderSettings &settings, const World &world) |
| |
| CameraVectors | create_vectors (const Ypr &rotation) |
| | Capture the local space of a "camera" us ing only the rotation.
|
| |
| void | bind_texture_2d (State *states, const Uniform &uniform, const Texture2d &texture) |
| |
| void | bind_texture_2d (State *states, const Uniform &uniform, const FrameBuffer &texture) |
| |
| void | bind_texture_cubemap (State *states, const Uniform &uniform, const TextureCubemap &texture) |
| |
| Texture2d | load_image_from_color (DEBUG_LABEL_ARG_MANY core::SingleColor pixel, TextureEdge te, TextureRenderStyle trs, Transparency t, ColorData cd) |
| |
| TextureCubemap | load_cubemap_from_color (DEBUG_LABEL_ARG_MANY core::SingleColor pixel, ColorData cd) |
| |
| std::shared_ptr< FrameBuffer > | build_simple_framebuffer (DEBUG_LABEL_ARG_MANY const Size &size) |
| | Build a simple LDR frame buffer.
|
| |
| std::shared_ptr< FrameBuffer > | build_msaa_framebuffer (DEBUG_LABEL_ARG_MANY const Size &size, int msaa_samples, ColorBitsPerPixel bits_per_pixel) |
| | Builds a multisample anti-aliasing (MSAA) framebuffer for high-quality rendering.
|
| |
| std::shared_ptr< FrameBuffer > | build_hdr_floating_framebuffer (DEBUG_LABEL_ARG_MANY const Size &size, ColorBitsPerPixel bits_per_pixel) |
| | Build a HDR frame buffer.
|
| |
| std::shared_ptr< FrameBuffer > | build_shadow_framebuffer (DEBUG_LABEL_ARG_MANY const Size &size) |
| | Create a depth-only framebuffer for shadow rendering.
|
| |
| void | resolve_multisampled_buffer (const FrameBuffer &src, FrameBuffer *dst) |
| |
| Texture2d | load_image_from_embedded (DEBUG_LABEL_ARG_MANY const embedded_binary &image_binary, TextureEdge te, TextureRenderStyle trs, Transparency t, ColorData cd) |
| |
| TextureCubemap | load_cubemap_from_embedded (DEBUG_LABEL_ARG_MANY const std::array< embedded_binary, cubemap_size > &images, ColorData cd) |
| |
| std::shared_ptr< CompiledGeom > | compile_geom (DEBUG_LABEL_ARG_MANY const core::Geom &, const core::CompiledGeomVertexAttributes &layout) |
| |
| std::shared_ptr< CompiledGeom_TransformInstance > | compile_geom_with_transform_instance (DEBUG_LABEL_ARG_MANY const core::Geom &, const core::CompiledGeomVertexAttributes &layout, std::size_t max_instances) |
| |
| m4 | transform_from_rotation (const v3 &position, const Ypr &ypr) |
| |
| m4 | transform_from_billboard (const v3 &position, Billboarding billboarding, const CompiledCamera &cc) |
| |
| std::shared_ptr< MeshInstance > | make_mesh_instance (std::shared_ptr< CompiledGeom > geom, std::shared_ptr< Material > mat) |
| |
| std::shared_ptr< MeshInstance_TransformInstanced > | make_mesh_instance (std::shared_ptr< CompiledGeom_TransformInstance > geom, std::shared_ptr< Material > mat) |
| |
| void | render_geom (const CompiledGeom &geom) |
| |
| void | render_geom_instanced (const MeshInstance_TransformInstanced &instanced) |
| |
| CameraVectors | create_vectors (const DirectionalLight &p) |
| |