Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gpu_program.cpp File Reference
#include "gpu_program.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  unravel
 
namespace  gfx
 

Functions

void gfx::set_world_transform (const std::vector< math::transform::mat4_t > &matrices)
 Sets the transformation matrices.
 
void gfx::set_world_transform (const std::vector< math::transform > &matrices)
 Sets the transformations.
 
void gfx::set_world_transform (const math::transform::mat4_t &matrix)
 Sets the transformation matrix.
 
void gfx::set_world_transform (const math::transform &matrix)
 Sets the transformation.
 
void gfx::set_transform (const std::vector< math::transform::mat4_t > &matrices)
 
void gfx::set_transform (const std::vector< math::transform > &matrices)
 
void gfx::set_transform (const math::transform::mat4_t &matrix)
 
void gfx::set_transform (const math::transform &matrix)
 
void gfx::set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::frame_buffer::ptr &handle, uint8_t attachment=0, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max())
 Sets the texture for a specific stage using a frame buffer.
 
void gfx::set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::texture::ptr &texture, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max())
 Sets the texture for a specific stage using a texture.
 
void gfx::set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::frame_buffer *handle, uint8_t attachment=0, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max())
 Sets the texture for a specific stage using a frame buffer.
 
void gfx::set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::texture *texture, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max())
 Sets the texture for a specific stage using a texture.
 
void gfx::set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const asset_handle< gfx::texture > &texture, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max())
 Sets the texture for a specific stage using a texture.
 
void gfx::set_uniform (const gfx::program::uniform_ptr &uniform, const void *value, std::uint16_t num=1)
 Sets a uniform value.
 
void gfx::set_uniform (const gfx::program::uniform_ptr &uniform, const math::mat4 &value, std::uint16_t num=1)
 Sets a uniform value.
 
void gfx::set_uniform (const gfx::program::uniform_ptr &uniform, const math::vec4 &value, std::uint16_t num=1)
 Sets a uniform value.
 
void gfx::set_uniform (const gfx::program::uniform_ptr &uniform, const math::vec3 &value, std::uint16_t num=1)
 Sets a uniform value.
 
void gfx::set_uniform (const gfx::program::uniform_ptr &uniform, const math::vec2 &value, std::uint16_t num=1)
 Sets a uniform value.