You do not have permission to edit this page, for the following reason:
The action you have requested is limited to users in one of the groups: Users, Administrators.
Free text:
{{Obsolete}} sf2dlib is a simple abstraction layer over [https://github.com/devkitPro/citro3d citro3d] with extra functions over citro3d to make displaying simple shapes and 2d sprites easy. As long as you are not drawing millions of shapes/sprites, this library should be able to fit your use case. If you are seeking to squeeze all of the power out of your 3ds and have full control over the GPU then sf2dlib will probably not fit your use case and you should use citro3d instead. Note that there is a small overhead in using sf2dlib over citro3d, but it is negligible as long as you aren't rendering too much in a single frame. This is based on [https://github.com/xerpi/sf2dlib xerpi's sf2dlib], making it more consistent with citro3d while also adding new functions and improvements. See the [https://github.com/TricksterGuy/sf2dlib/blob/master/sample/source/main.c sample] to see the new code flow. '''Note:''' This library is deprecated. Please consider using [https://github.com/fincs/citro3d citro3d] directly instead. ==Installation== Download the library or git clone it from GitHub. Open a command prompt/terminal and cd to the libsf2d folder. Run the commands <code>make</code> and <code>make install</code>. ==User guide== Please refer to the [http://xerpi.github.io/sf2dlib/html/sf2d_8h.html original documentation]. ===API Changes=== {| class="wikitable" style="width: 700px;" ! style="width: 40%;"| Function ! Change |- | <code>sf2d_start_render()</code> | Newly added, use instead of <code>sf2d_start_frame</code>. |- | <code>sf2d_start_frame(screen, side)</code> | Removed, <code>sf2d_set_render_screen(screen, side)</code> replaces it. |- | <code>sf2d_end_frame()</code> | Removed, <code>sf2d_end_render()</code> replaces it. |- | <code>sf2d_swapbuffers()</code> | Removed, <code>sf2d_end_render()</code> replaces it. |- | <code>sf2d_draw_quad_uv_current(...)</code> | Removed, use Batch functions instead. |- | <code>sf2d_draw_quad_uv(...)</code> | Removed, use Batch functions isntead. |- | <code>sf2d_draw_quad_uv_blend(...)</code> | Removed, use Batch functions isntead. |} ===Added Features=== * Support for Sprite Batching to improve efficiency of drawing many sprites using the same texture see [https://github.com/TricksterGuy/sf2dlib/tree/master/samples/batching Batching Sample]. * Ability to set framerate limit via <code>sf2d_set_fps(float fps)</code> ==Media== '''How to set up your computer for developing 3DS Homebrew (Linux)''' ([https://www.youtube.com/watch?v=1ta5aPkcmTE BtheDestroyer]) <br> <youtube>1ta5aPkcmTE</youtube> ==External links== * GitHub - https://github.com/TricksterGuy/sf2dlib
Advertising: