Skip to content
MitskiyuPublic

About

Galaxy Generator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

85 Commits

Folders and files

Repository files navigation

Capymilk

Real-time spiral galaxy renderer built from scratch in C

preview.mp4

Build

# from a shell with msvc attached
build.bat

build\main.exe # make sure to run from root dir

Controls

Key Action
Q/A angular offset
W/S inner eccentricity
E/D outer eccentricity
R/F time scale
U/J core radius
I/K galaxy radius
T/G star count
Y/H dust count

Layers

  • base
    • types, macros, math, arena allocator
  • platform (plat_)
    • files, time, memory reservation; os-dependent
  • window_manager (wm_)
    • window creation, input, message loop; os-dependent
  • render (r_)
    • gpu resources and drawing; implemented per-backend
  • galaxy (glx_)
    • particle simulation + renderer
  • ui
    • quad drawing (stub)
  • capymilk (cm_)
    • app state and frame loop

Credit

beltoforion's article was used for implementing the simulation model

About

Galaxy Generator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages