Skip to content

SDL Program Addition - #1

Closed
xetch-mirror wants to merge 6 commits into
nyxos-dev:mainfrom
xetch-mirror:main
Closed

SDL Program Addition#1
xetch-mirror wants to merge 6 commits into
nyxos-dev:mainfrom
xetch-mirror:main

Conversation

@xetch-mirror

@xetch-mirror xetch-mirror commented Sep 7, 2026

Copy link
Copy Markdown

We put a program called "SDL", a Media Library that contains functions to build "Media" using this Library.

How to use?
Compile using any compiler

  1. Put some functions
  2. Put 2 files in the compiler, Your PROGRAM and sdl.c
    Example
    tcc -nostdlib -nostdinc program.c sdl.c -o output.o -c
    ! Expected TCC!

@poopyking482-sudo

Copy link
Copy Markdown

Expected.

@kazah-png

Copy link
Copy Markdown
Contributor

Thanks for the submission, but I'm closing this one — a few blockers:

  1. rect doesn't work from the CLI. run_command tries %d,%d,%x first, and a 5-field rect arg (e.g. 0,0,64,32,000000) already matches that 3-field prefix, so it's treated as a pixel and fill_rect never runs — the README example draws pixels, not a rectangle. The px/rect keywords are skipped with continue, so they don't disambiguate.

  2. The name. A ~130-line PPM writer shipped as "sdl" / "Simple DirectMedia Library" collides with the real SDL (which is a Layer, not a Library). NyxOS ports keep their own identity, so this needs a distinct name (e.g. ppmdraw).

  3. sdl.h declares canvas_create/canvas_free, which sdl.c neither defines nor includes.

  4. Wrong repo. This repo is generated from the monorepo's user/pkg/ by the sync workflow, so anything committed here is overwritten on the next sync. Ports are added upstream as user/pkg/<name>/{<name>.c,recipe}.

Happy to look again if it's reworked upstream with its own name and the rect parsing fixed.

@kazah-png kazah-png closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants