You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/notes/MakingAnActualThing.txt

34 lines
1.0 KiB

4 years ago
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2020-08-06T21:51:48-07:00
====== MakingAnActualThing ======
Created Thursday 06 August 2020
So, I need to figure out how to determine which objects will :
* Be rendered
* Be notified
* Get batched
* And initialized
Looks like it could possibly be specs...
Sprites currently are just a container for the meta-information needed in order to return a VertexTypeContainer.
4 years ago
{{{code: lang="rust" linenumbers="True"
pub enum VertexTypeContainer {
TextureType(Vec<TextureVertex3D>, Arc<CanvasTextureHandle>),
ImageType(Vec<ImageVertex3D>, Arc<CanvasImageHandle>),
ColorType(Vec<ColorVertex3D>),
ThreeDType(Vec<Vertex3D>),
TextType(Vec<ColorVertex3D>),
4 years ago
}
}}}
So for a sprite, which is a generic texture and position/size combo
Images are similar, but instead of a "sprite" I made a computsprite because that's the only thing that uses them.
Now if I had to shove these into a component / a set of components... I could have a component of the vertex type even?