Skip to content

slugbyte/opengl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opengl

tryin to learn me some opengl

  • ColorModel fns
    • init whatever is normal for this type rgb hsl ...
    • init_from_blah fns to cast other color models into @This()
    • init_xyza normalized init all values are [0-1]
    • to_xyza returns normalized floats of the values (for sliders)
    • to_gl_rgba_vertex returns floats for opengl
    • format - pretty print
    • set_alpha set alpha values

TODO

  • default Color should be RGBAFloat
  • make slider a "component"
    • use struct for state
  • math
    • 4x4 matrix
      • linear
      • orthographic
      • scale
      • rotate
      • skew
      • translate
  • box
    • more flex
    • more responsive
    • add things based on grids?
    • add things based on %
    • debug mode (random borders, random fills)
    • wrap?
  • inputs
    • button
    • pulse (instant button)
    • checkbox
    • slider
    • text
    • textarea?
    • text-arrow-key-keyboard
  • no border_color just color_border
  • render fonts
  • worker thread pool for async tasks
    • file io
  • save an load pallet
  • Box? a nice way to render a Rect with a Theme?
    • width
    • height
    • border
    • margin
    • pad
    • fill_color
    • fill_image?
  • per frame arena allocator?
  • more basic render fns
  • Button + Double Click
  • Slider
  • ColorPicker
  • BRUSH
    • sample 1 texture for alpha (try and emulate air brush)

IDEA

  • each gui component should have the ability to be aboslutly postioned or postioned by a cursur?
    • or figure out how to have aboslutly postioned things use a cursur?
    • or have seperate fns button\_absolute() vs button\_cursor() or button\_a() or button\_c()

About

a sandbox for learnin opengl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published