-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push what i have right now because i not only upgraded pcs but also t…
…ransferred the same clone over to a new drive
- Loading branch information
Showing
6 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package lemons.display; | ||
|
||
|
||
/** | ||
* a texture. note that this isn't the same as `Image`. `Image` is a class that holds image data at a software level, while `Texture` is at a hardware level. | ||
**/ | ||
@:allow(lemons.display.render.Renderer) | ||
class Texture { | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ class Renderer { | |
curUniform = curUniform.next; | ||
} | ||
} | ||
|
||
prog._uniformQueue = null; | ||
return; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package lemons.display; | ||
|
||
import haxe.io.Bytes; | ||
|
||
|
||
/** | ||
* specifies in what colour format the raw image data is stored in | ||
**/ | ||
enum abstract ImageFormat(Int) to Int { | ||
/** | ||
* indicates 4 values in order of red, green, blue and alpha, all using 8 bits and 32 bits in total | ||
**/ | ||
var RGBA32 = 0; | ||
|
||
/** | ||
* indicates a greyscale image with only one value, red, using 8 bits | ||
**/ | ||
var RED8 = 1; | ||
|
||
/** | ||
* red 8 more like uhhhhhhhhh red 40 | ||
* haha get it | ||
* red 40 | ||
* | ||
* red fourty | ||
* | ||
* nevertheless, this is the same as `RED8` | ||
**/ | ||
var RED40 = 1; | ||
} | ||
|
||
/** | ||
* an image | ||
**/ | ||
class Image { | ||
public final bytes:Bytes; | ||
|
||
function new(bytes:Bytes, format:ImageFormat) { | ||
this.bytes = bytes; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61a15fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i forgot to setup commit signing oops