Euphoria
Main Page
Related Pages
Topics
Namespaces
Concepts
Classes
Files
File List
File Members
libs
core
src
eu
core
geom.extract.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
eu::core
4
{
5
struct
Geom;
6
struct
CompiledGeomVertexAttributes;
7
}
// namespace eu::core
8
9
namespace
eu::core
10
{
11
17
enum class
ExtractedAttributeType
18
{
19
Float
20
};
21
23
struct
ExtractedAttribute
24
{
25
ExtractedAttributeType
type
;
26
int
count
;
27
std::size_t
size
;
28
};
29
31
struct
ExtractedGeom
32
{
33
std::vector<char>
data
;
34
std::size_t
stride
;
35
36
std::vector<ExtractedAttribute>
attributes
;
37
std::vector<u32>
indices
;
38
i32
face_size
;
39
};
40
41
ExtractedGeom
extract_geom
(
const
Geom
& geom,
const
CompiledGeomVertexAttributes
& layout);
42
47
}
// namespace eu::core
eu::core::ExtractedAttributeType
ExtractedAttributeType
The type of a extracted attribute, like 'float'.
Definition
geom.extract.h:18
eu::core::extract_geom
ExtractedGeom extract_geom(const Geom &geom, const CompiledGeomVertexAttributes &layout)
eu::core::ExtractedAttributeType::Float
@ Float
eu::core
Definition
color.h:4
eu::i32
std::int32_t i32
Definition
ints.h:9
eu::core::CompiledGeomVertexAttributes
A list of CompiledVertexLayoutNoNameList (for geom)
Definition
vertex_layout.h:80
eu::core::ExtractedAttribute
A extracted attribute like float 3
Definition
geom.extract.h:24
eu::core::ExtractedAttribute::size
std::size_t size
Definition
geom.extract.h:27
eu::core::ExtractedAttribute::count
int count
Definition
geom.extract.h:26
eu::core::ExtractedAttribute::type
ExtractedAttributeType type
Definition
geom.extract.h:25
eu::core::ExtractedGeom
Extracted data from a Geom for a specific shader layout so a CompiledGeom can be created.
Definition
geom.extract.h:32
eu::core::ExtractedGeom::attributes
std::vector< ExtractedAttribute > attributes
Definition
geom.extract.h:36
eu::core::ExtractedGeom::indices
std::vector< u32 > indices
Definition
geom.extract.h:37
eu::core::ExtractedGeom::data
std::vector< char > data
Definition
geom.extract.h:33
eu::core::ExtractedGeom::stride
std::size_t stride
Definition
geom.extract.h:34
eu::core::ExtractedGeom::face_size
i32 face_size
Definition
geom.extract.h:38
eu::core::Geom
vertices and triangles
Definition
geom.h:30
Generated by
1.9.8