![]() - shaderProgramSetGshInputPermutation() was added - shaderInstanceGetUniformLocation() return type corrected - shaderInstanceSetBool bug fixed (true/false were incorrectly mapped) - shaderInstance now has bitmasks indicating which int/bool uniforms are used by int/bool constants in the DVLE - shaderProgramUse() was revamped: - Shader unit setup/code/opdesc upload code was separated into a new function called shaderProgramConfigure() - shaderProgramUse() calls shaderProgramConfigure() and afterwards uploads DVLE constants - GPU wrappers that perform uniform management will want to use shaderProgramConfigure() instead of shaderProgramUse() and later read the shaderInstance uniform usage bitmasks to set the constants. |
||
---|---|---|
examples | ||
libctru | ||
.gitignore | ||
.travis.yml | ||
exportdoc.sh | ||
README.md |
ctrulib
CTR User Library
Library for writing user mode arm11 code for the 3DS (CTR)
The goal with this is to create a very straightforward interface with the 3DS's OS. It is not meant to provide higher level functions; to put things in perspective, the purpose of ctrulib would be to sit between the OS and a possible port of SDL rather than replace it.
Setup
ctrulib is just a library and needs a toolchain to function. We built ctrulib to be used in conjunction with devkitARM. You may find instructions on how to install devkitARM on the devkitPro Wiki.
The most recent devkitARM (r44) includes 3DS support and a prebuilt libctru.
To keep up to date with the most recent changes you'll want to checkout ctrulib, build it and install it.
License
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.