KO
|
EN
gitlite — search
Search
#python
#hacktoberfest
#nodejs
#javascript
#typescript
#nextjs
#css
#reactjs
#golang
#rust
#react
#deep-learning
sdl_n64_libdragon
★ 24
Open GitHub ↗
Nintendo 64 port of SDL 2
Download README (.md)
Explore Similar Repositories
max_nx
:
Nintendo Switch port of https://github.com/fgsfdsfgs/max_vita
osu-ds
:
A Nintendo DS port of osu! written back in 2009.
Driving-Strikers-64
:
A port of the Driving Strikers indie game to the Nintendo 64 using Libdragon SDK, Tiny3D and a custom-made codebase in C
Pixel-Painter-Switch
:
A port of my 3DS application Pixel-Painter for the Nintendo Switch.
3dsconv-c
:
C program to convert Nintendo 3DS CCI (".cci", ".3ds") files to the CIA format, ported from python script
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
sdl_n64_libdragon
?
Download (.md)
# Nintendo 64 port of SDL 1 and 2, and SDL2_Image The SDL 1 port has all the headers, but does not implement all functions. If you need a function and it's not implemented it should give linker errors. You are free to implement those functions anywhere in your project, as long as you compile that file. The SDL 2 port has all the code from SDL 2, but the renderer does not have all functionality, and does not support sound. The SDL2_image port currently supports the following formats: - BMP - GIF - LBM - PCX - PNM - SPRITE (from libragon's `mksprite` tool) - TGA - XCF - XPM - XV **PRs are always welcome.** ## Usage ### SDL 1 Copy all lib/SDL into your project. Set to compile all `.c` files inside that folder. Include the folder to use `<SDL/SDL.h>` or `<SDL.h>` in your project. Sample Makefile: ```Makefile V=1 SOURCE_DIR=src BUILD_DIR=build include $(N64_INST)/include/n64.mk # adding the lib folder here N64_CFLAGS += -Ilib/ all: hello.z64 .PHONY: all # adding files to compile SDL := $(wildcard lib/SDL/*.c) # choose one below OBJS = $(BUILD_DIR)/main.o $(SDL:%.c=%.o) hello.z64: N64_ROM_TITLE="Hello World" $(BUILD_DIR)/hello.elf: $(OBJS) clean: rm -f $(BUILD_DIR) *.z64 .PHONY: clean -include $(wildcard $(BUILD_DIR)/*.d) ``` ### SDL 2 Include the source as submodule or copy this repository. Include `/SDL2/Makefile_sdl2.mk` into your makefile. Add `$(C_SDL_FILES)` to your C source files for compilation, and set `SDL2_ROOT_DIR` to the root of the SDL2 folder (`/SDL2` on this repo). You may also need to relocate the DFS file inside your ROM due to the amount of code that is inside SDL2. So use `N64_DFS_OFFSET` to set it accordingly. If you want to use 32bpp, you have to set `SDL2_BPP` to `DEPTH_32_BPP` on your Makefile like below: ``` SDL2_BPP = DEPTH_32_BPP ``` You will have to rebuild SDL2 for it to take effect. You can find Makefiles using SDL2 [here](https://github.com/stefanmielke/opentyrian/blob/master/Makefile) and [here](https://github.com/stefanmielke/nKaruga_n64/blob/master/Makefile.n64). ### SDL2_Image Include the source as submodule or copy this repository. Include `/SDL2_image/Makefile_sdl2_image.mk` into your makefile. Add `$(C_SDL_IMAGE_FILES)` to your C source files for compilation, and set `SDL2_IMAGE_ROOT_DIR` to the root of the SDL2 folder (`/SDL2_image` on this repo).