sf2dlib is using the GPU. There are no special 3d functions necessarily, it's essentially a hacky OpenGL ES. You would simply need to make sure sf2dlib's default shader script handles x/y/z vertex coords (I think it already may) and then use proper projection matrix.Alright, I'll look at it, but I'm interested in using the GPU functions in my programs. Specifically 3D stuff, which I'm pretty sure sf2dlib doesn't do. But the source code might be helpful since there are descriptions of what each function does.
I have a 3d engine and lib made already, but it's lacking fragment lighting, so until it has that it looks pretty ugly and not worth using.
Here's an example of a basic 3d shader. It's already fragment-lighting ready (though untested): https://github.com/cpp3ds/cpp3ds/blob/3d/res/core_resource/default_shader.vsh
Here's an example of projection matrix: https://github.com/cpp3ds/cpp3ds/blob/3d/src/cpp3ds/Graphics/Camera.cpp#L187
Not much else. If you don't know how to create a 3d environment in OpenGL ES, you certainly won't be able to using ctrulib.
Last edited by TheCruel,