Ceebox / cbEngine

A small, experimental 64x64 pixel based game engine.
MIT License
36 stars 5 forks source link

Remove unused vertex attributes #5

Open unendlicherPing opened 1 year ago

unendlicherPing commented 1 year ago

See: Issue #4 https://github.com/Ceebox/cbEngine/issues/4/

unendlicherPing commented 1 year ago

The vertecies also could be defined like this:

typedef struct Vertex {
  float position_x, position_y;
  float texture_x,  texture_y;
} Vertex;

Vertex vertecies[] = {
  { -1.0, -1.0, 0.0, 0.0 }, /* bottom left */
  { -1.0,  1.0, 0.0, 1.0 }, /* top left */
  {  1.0, -1.0, 1.0, 0.0 }, /* bottom right */
  {  1.0,  1.0, 1.0, 1.0 }, /* top right */
};

This is just an optical change and not directly related to my Issue.