Ian Chamberlain
ec91f7d2fe
Use the lifetime of the input VBO data
...
We can return a "handle" that stores the index + size of the VBO data,
as well as keeping a phantom borrow on the original data. By requiring
this handle as input during the call to draw arrays, we ensure the VBO
data lives long enough for the draw call.
2 years ago
Ian Chamberlain
704f6e58b7
First pass of safe buffer info API
2 years ago
Ian Chamberlain
3a2b3f4ffe
Address review comments
2 years ago
Ian Chamberlain
1f8c5b3bc7
Convert VBO data to use `ctru::linear` allocator
2 years ago
Ian Chamberlain
f8e8542f92
Minor fixes + clippy
2 years ago
Ian Chamberlain
748e34e5f1
Minor example updates / address comments
2 years ago
Ian Chamberlain
894eb66806
Update ctru-rs APIs based on split screen PR
2 years ago
Ian Chamberlain
02a9d40fdb
Use bindgen library to generate bindings
...
This allows us to use a custom callback for marking some types as Copy,
which bindgen otherwise pessimistically assumes cannot.
2 years ago
Ian Chamberlain
5ffde47b85
Use RefMut and fix some lints
2 years ago
Ian Chamberlain
d8f3a24f05
Render to the bottom screen in triangle example
2 years ago
Ian Chamberlain
1d35a44ede
Add a screen member to render::Target
...
This ensures the screen lives longer than the render target, and also
makes it a little more convenient to get the color format.
2 years ago
Ian Chamberlain
4492b2d293
Implement some basic shader program types
3 years ago
Ian Chamberlain
e5e2e63586
port frame begin/end to safe rust
3 years ago
Ian Chamberlain
184060c63d
Update render target API for auto framebuffer fmt
...
Transfer flags can be an implementation detail this way, although it
might need to be exposed eventually.
3 years ago
Ian Chamberlain
83b613684a
First pass at some safe wrappers for render target
3 years ago
Ian Chamberlain
5a3fd9d21b
Varios cleanup + simplify example
3 years ago
Ian Chamberlain
5743da3d56
Initial attempt at build script compilation
3 years ago
Ian Chamberlain
1177a32254
Completely remove ctru-sys dep and fix some lints
3 years ago
Ian Chamberlain
484e971dd5
Add compiling example using -sys bindings
...
Fix some more issues with bindings and add README
3 years ago