![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
#include <array>
#include <glm/vec2.hpp>
#include "galaxy/meta/Memory.hpp"
Go to the source code of this file.
Classes | |
struct | galaxy::graphics::Vertex |
Represents a single vertex point. More... | |
Namespaces | |
namespace | galaxy |
Animated.cpp galaxy. | |
namespace | galaxy::graphics |
Functions | |
std::array< Vertex, 4 > | galaxy::graphics::gen_quad_vertices (const float width, const float height) |
Generate some default verticies. | |
std::array< unsigned int, 6 > | galaxy::graphics::gen_default_indices () |
Generate some default indicies. | |
template<meta::is_arithmetic Type> | |
float | galaxy::graphics::map_x_texel (const Type x, const float width) |
Takes in a x positon texture coord and maps it to a texel. | |
template<meta::is_arithmetic Type> | |
float | galaxy::graphics::map_y_texel (const Type y, const float height) |
Takes in a y positon texture coord and maps it to a texel. | |