Piping just the vertex glyph representation first to test the stencil buffer

This commit is contained in:
2020-02-22 00:07:58 -08:00
parent bb8144bb01
commit b3e092e25a
70 changed files with 906 additions and 369 deletions

48
notes/Drawables.txt Normal file
View File

@@ -0,0 +1,48 @@
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2020-02-21T22:54:06-08:00
====== Drawables ======
[[/doc/sfml_rust/drawables/index.html|Documentation]]
=== Details ===
Drawables are all able to be passed to the canvas frame to be rendered
The implementation of the Drawable trait is tightly coupled to the data types defined in VertexType and ingested by the canvas frame
Right now I have a couple of types that I'm using:
TextureType(vec, handle)
ImageType(vec, handle)
ColorType(vec)
ThreeDType(vec)
This maps to the drawables I have implemented
compu_sprite : ImageType
polygon : ColorType
rect : ColorType
sprite : TextureType
It doesn't matter, how these objects get the VertexType that it needs to return. Generating them on the fly should be generally OK. It won't scale to very large amounts of sprites. But it's fine for now.