gopxl / pixel

A hand-crafted 2D game library in Go.
MIT License
219 stars 8 forks source link

Wonky Coordinate grid #41

Open duysqubix opened 10 months ago

duysqubix commented 10 months ago

Pixel implements it's coordinate grid different than most graphics rendering systems (infact even different from opengl itself.) This complicates any efforts to integrate custom tools and libraries with pixel and is a hindrance to anyone moving from different library/language/api.

Original issue: https://github.com/faiface/pixel/issues/292

duysqubix commented 8 months ago

@dusk125

I can not remember where we landed on this. I remember discussing that the wonky grid is how the underlying GL libraries actually expect it. Do I remember this right?

dusk125 commented 8 months ago

I think we landed that Pixel is following the standard and so should continue to have the "wonky" system.

If there's desire for it, an enhancement could be to have a window option that flips it (essentially apply a Matrix(1,-1) scale)

duysqubix commented 8 months ago

got it, thanks for clarifying