forked from serp256/lightning
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,3 +17,5 @@ myconfig.macos | |
gen | ||
bin | ||
gen | ||
#emacs temporary | ||
*~ |
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,43 @@ | ||
open LightCommon; | ||
|
||
class virtual base = | ||
object(self) | ||
inherit DisplayObject.c as super; | ||
end; | ||
|
||
class _c = | ||
object(self) | ||
inherit base as super; | ||
|
||
method !name = if name = "" then Printf.sprintf "glprimitives%d" (Oo.id self) else name; | ||
method setColor _ = (); | ||
method color = `NoColor; | ||
method filters = []; | ||
method setFilters _ = (); | ||
method boundsInSpace: | ||
!'space. (option (<asDisplayObject: DisplayObject.c; .. > as 'space)) -> Rectangle.t = | ||
fun _ -> Rectangle.create 0. 0. 300. 300. | ||
; | ||
method private render' ?alpha:(alpha') ~transform _ = | ||
( | ||
debug "GLPrimitives._c.render"; | ||
Render.GLPrimitives.render () | ||
); | ||
end; | ||
|
||
class c = | ||
object(self) | ||
inherit _c ; | ||
method ccast : [= `Image of c ] = `Image (self :> c); | ||
end; | ||
|
||
value create () = new c; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
sdl: | ||
pc: | ||
$(MAKE) -f Makefile.pc | ||
|
||
clean: | ||
|
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