|
Euphoria
|
Namespaces | |
| namespace | geom |
Classes | |
| struct | ExtractedAttribute |
| A extracted attribute like float 3. More... | |
| struct | ExtractedGeom |
| Extracted data from a Geom for a specific shader layout so a CompiledGeom can be created. More... | |
| struct | Vertex |
| A single vertex in a Geom. More... | |
| struct | Face |
| A triangulated face in a Geom. More... | |
| struct | Geom |
| vertices and triangles More... | |
| struct | HashCombiner |
| A utility for combining hash values of multiple objects into a single hash value. More... | |
| struct | PixelColor |
| A simple integer sRGBA color. More... | |
| struct | Image |
| A simple sRGB(A) image. More... | |
| struct | LoadedGlyph |
| struct | LoadedFont |
| struct | MeshGeom |
| struct | TransformedMesh |
| struct | Mesh |
| struct | SCurve |
| Contains the parameters for an S-Curve. More... | |
| struct | UniformBufferSetup |
| struct | CompiledUniformProp |
| A compiled uniform buffer property that can be used in a shader. More... | |
| struct | UniformProp |
| internal More... | |
| struct | UniformBufferCompiler |
| struct | VertexElementDescription |
| A not-yet-realised binding to a shader variable like vec3 position. More... | |
| struct | CompiledVertexElement |
| A realized VertexElementDescription like vec3 position at gl shader position 3. More... | |
| struct | CompiledVertexElementNoName |
| A realized VertexElementDescription without name like vec3 at gl shader position 3. More... | |
| struct | CompiledShaderVertexAttributes |
| A list of CompiledVertexElement (for shader). More... | |
| struct | CompiledGeomVertexAttributes |
| A list of CompiledVertexLayoutNoNameList (for geom). More... | |
| struct | CompiledVertexTypeList |
| A mapping of the vertex type (position...) to the actual shader id (for more than one shader). More... | |
| struct | InstanceProp |
| A property for a shader used in instanced rendering. More... | |
Typedefs | |
| using | KerningMap = std::map<std::pair<int, int>, float> |
| using | ShaderVertexAttributes = std::vector<VertexElementDescription> |
| Describes all vertex inputs a shader requires like [vec3 position, vec3 normal, vec2 uv]. | |
| using | VertexTypes = std::vector<VertexType> |
Enumerations | |
| enum class | SingleColor : std::uint32_t |
| A single color in a format to load directly into open gl texture(ABGR on little endian). More... | |
| enum class | ExtractedAttributeType { ExtractedAttributeType::Float } |
| The type of a extracted attribute, like 'float'. More... | |
| enum class | UniformType { UniformType::invalid , UniformType::bool_type , UniformType::int_type , UniformType::float_type , UniformType::vec2 , UniformType::vec3 , UniformType::vec4 , UniformType::mat4 } |
| enum class | VertexType { VertexType::position2xy , VertexType::position2xz , VertexType::position3 , VertexType::normal3 , VertexType::color3 , VertexType::color4 , VertexType::texture2 , VertexType::instance_transform } |
| Vertex source type, position, normal etc. More... | |
Functions | |
| constexpr SingleColor | color_from_rgba (uint8_t r, uint8_t g, uint8_t b, uint8_t a) |
| Constructs a SingleColor value from individual red, green, blue, and alpha components. | |
| ExtractedGeom | extract_geom (const Geom &geom, const CompiledGeomVertexAttributes &layout) |
| void | paste_image (Image *dst, int dst_x, int dst_y, const Image &src) |
| Copies pixel data from a source image to a destination image at specified coordinates. | |
| LoadedFont | get_characters_from_single_image (const std::string &image_file, const std::string &image_alias, float image_scale, float image_bearing_x, float image_bearing_y, float image_advance) |
| LoadedFont | get_characters_from_single_image (const Image &image, const std::string &image_alias, float image_scale, float image_bearing_x, float image_bearing_y, float image_advance) |
| SCurve | s_curve_from_input (float x, float y) |
| Generate an S-Curve from user input. | |
| float | calculate_s_curve (float x, float slope, float threshold) |
| Calculates an S-Curve. | |
| template<typename T> | |
| std::vector< T > | perform_table_layout (const std::vector< T > &pieces, T total_size, T zero=0) |
| Calculates a table layout based on the input layout. | |
| v2 | calculate_region (const v2 &mouse_pos, const v2 &pos, const v2 &my_tex, const v2 &widget_size, float region_sz) |
| template<typename TString, typename TOnCodepointFunc> | |
| bool | calc_utf8_to_codepoints (const TString &string, TOnCodepointFunc on_codepoint) |
| constexpr bool | is_instance_based (VertexType v) |
| std::vector< VertexType > | find_duplicates (const ShaderVertexAttributes &items) |
| CompiledShaderVertexAttributes | compile_shader_layout (const CompiledVertexTypeList &l, const ShaderVertexAttributes &elements, std::optional< InstanceProp > instance_prop, std::optional< int > start_index) |
| CompiledGeomVertexAttributes | get_geom_layout (const CompiledVertexTypeList &l) |
| CompiledVertexTypeList | compile_attribute_layouts (const std::vector< VertexType > &base_layout, const std::vector< ShaderVertexAttributes > &descriptions) |
| CompiledVertexTypeList | compile_attribute_layouts (const std::vector< ShaderVertexAttributes > &descriptions) |
| using eu::core::KerningMap = std::map<std::pair<int, int>, float> |
Definition at line 45 of file loadedfont.h.
|
strong |
A single color in a format to load directly into open gl texture(ABGR on little endian).
| bool eu::core::calc_utf8_to_codepoints | ( | const TString & | string, |
| TOnCodepointFunc | on_codepoint ) |
| v2 eu::core::calculate_region | ( | const v2 & | mouse_pos, |
| const v2 & | pos, | ||
| const v2 & | my_tex, | ||
| const v2 & | widget_size, | ||
| float | region_sz ) |
|
constexpr |
Constructs a SingleColor value from individual red, green, blue, and alpha components.
| r | The red component of the color (0x00 - 0xFF). |
| g | The green component of the color (0x00 - 0xFF). |
| b | The blue component of the color (0x00 - 0xFF). |
| a | The alpha (opacity) component of the color (0x00 - 0xFF). |
| LoadedFont eu::core::get_characters_from_single_image | ( | const Image & | image, |
| const std::string & | image_alias, | ||
| float | image_scale, | ||
| float | image_bearing_x, | ||
| float | image_bearing_y, | ||
| float | image_advance ) |
| LoadedFont eu::core::get_characters_from_single_image | ( | const std::string & | image_file, |
| const std::string & | image_alias, | ||
| float | image_scale, | ||
| float | image_bearing_x, | ||
| float | image_bearing_y, | ||
| float | image_advance ) |
Copies pixel data from a source image to a destination image at specified coordinates.
Sometimes called blit.
| dst | The destination image. |
| dst_x | The x-coordinate in the destination image where the source image will be pasted. |
| dst_y | The y-coordinate in the destination image where the source image will be pasted. |
| src | The source image. |
| std::vector< T > eu::core::perform_table_layout | ( | const std::vector< T > & | pieces, |
| T | total_size, | ||
| T | zero = 0 ) |
Calculates a table layout based on the input layout.
Since rows and columns are handled the same, this functions only handled 1d tables.
Positive values in the array mean absolute pixel size Zero values are invalid. Negative values indicate the scaling size and the exact ration will be proportional to the rest of the scaling values.
If available size < min_size scaling areas will have "zero" and absolute areas will be resized.
Definition at line 22 of file tablelayout.h.