gdl.app
render-with
(render-with {:keys [batch gui-camera world-camera world-unit-scale], :as context} gui-or-world renderfn)
diff --git a/docs/gdl.app.html b/docs/gdl.app.html index 81612cf..8303061 100644 --- a/docs/gdl.app.html +++ b/docs/gdl.app.html @@ -1,3 +1,3 @@ -
(render-with {:keys [batch gui-camera world-camera world-unit-scale], :as context} gui-or-world renderfn)
(render-with {:keys [batch shape-drawer gui-camera world-camera world-unit-scale], :as context} gui-or-world draw-fn)
(save-port-file server)
Writes a file relative to project classpath with port number so other tools +gdl.dev-loop documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.draw.html b/docs/gdl.draw.html new file mode 100644 index 0000000..9d16ae0 --- /dev/null +++ b/docs/gdl.draw.html @@ -0,0 +1,3 @@ + +gdl.dev-loop
nrepl-server
refresh-result
save-port-file
(save-port-file server)
Writes a file relative to project classpath with port number so other tools can infer the nREPL server port. Takes nREPL server map and processed CLI options map. Returns nil.gdl.draw documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.geom.html b/docs/gdl.geom.html index ae3e353..dd8a0e7 100644 --- a/docs/gdl.geom.html +++ b/docs/gdl.geom.html @@ -1,3 +1,3 @@ -gdl.draw
Drawer
protocol
members
arc
(arc _ center-position radius start-angle degree color)
centered-image
(centered-image _ image position)
circle
(circle _ position radius color)
ellipse
(ellipse _ position radius-x radius-y color)
filled-circle
(filled-circle _ position radius color)
filled-ellipse
(filled-ellipse _ position radius-x radius-y color)
filled-rectangle
(filled-rectangle _ x y w h color)
image
(image _ image position)
(image _ image x y)
line
(line _ start-position end-position color)
(line _ x y ex ey color)
rectangle
(rectangle _ x y w h color)
rotated-centered-image
(rotated-centered-image _ image rotation position)
sector
(sector _ center-position radius start-angle degree color)
text
(text _ {:keys [font text x y h-align up?]})
with-line-width
(with-line-width _ width draw-fn)
gdl.geom documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.geom
circle->outer-rectangle
(circle->outer-rectangle {[x y] :position, :keys [radius], :as circle})
gdl.geom documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.animation.html b/docs/gdl.graphics.animation.html index 5e669ca..48ee9a8 100644 --- a/docs/gdl.graphics.animation.html +++ b/docs/gdl.graphics.animation.html @@ -1,3 +1,3 @@ -gdl.geom
circle->outer-rectangle
(circle->outer-rectangle {[x y] :position, :keys [radius], :as circle})
gdl.graphics.animation documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.graphics.animation
Animation
protocol
members
current-frame
(current-frame _)
restart
(restart _)
stopped?
(stopped? _)
tick
(tick _ delta)
gdl.graphics.animation documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.camera.html b/docs/gdl.graphics.camera.html index 4f1261e..04b8946 100644 --- a/docs/gdl.graphics.camera.html +++ b/docs/gdl.graphics.camera.html @@ -1,3 +1,3 @@ -gdl.graphics.animation
Animation
protocol
members
current-frame
(current-frame _)
restart
(restart _)
stopped?
(stopped? _)
tick
(tick _ delta)
gdl.graphics.camera documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.graphics.camera
gdl.graphics.camera documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.color.html b/docs/gdl.graphics.color.html index b869b5d..f85996b 100644 --- a/docs/gdl.graphics.color.html +++ b/docs/gdl.graphics.color.html @@ -1,3 +1,3 @@ -gdl.graphics.camera
gdl.graphics.color documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.graphics.color
gdl.graphics.color documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.font.html b/docs/gdl.graphics.font.html deleted file mode 100644 index 5259bce..0000000 --- a/docs/gdl.graphics.font.html +++ /dev/null @@ -1,3 +0,0 @@ - -gdl.graphics.color
gdl.graphics.font documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.freetype.html b/docs/gdl.graphics.freetype.html index 68958c1..d1957f9 100644 --- a/docs/gdl.graphics.freetype.html +++ b/docs/gdl.graphics.freetype.html @@ -1,3 +1,3 @@ -gdl.graphics.font
draw-text
(draw-text {:keys [default-font unit-scale batch]} {:keys [font text x y h-align up?]})
gdl.graphics.freetype documentation \ No newline at end of file +Generated by Codox
Gdl main-SNAPSHOT
gdl.graphics.freetype documentation \ No newline at end of file diff --git a/docs/gdl.graphics.image.html b/docs/gdl.graphics.image.html index d65bc93..160f255 100644 --- a/docs/gdl.graphics.image.html +++ b/docs/gdl.graphics.image.html @@ -1,6 +1,6 @@ -Generated by Codox
Gdl main-SNAPSHOT
gdl.graphics.image documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.graphics.image
create
(create {:keys [assets world-unit-scale]} file & {:keys [scale]})
Scale can be a number or [width height] -draw
(draw {:keys [batch], :as context} {:keys [texture color], :as image} position)
(draw context image x y)
draw-rotated-centered
(draw-rotated-centered {:keys [batch], :as context} {:keys [texture color], :as image} rotation [x y])
get-scaled-copy
(get-scaled-copy {:keys [world-unit-scale]} image scale)
Scaled of original texture-dimensions, not any existing scale. -get-sub-image
(get-sub-image {:keys [assets world-unit-scale]} {:keys [file], :as image} & sub-image-bounds)
Coordinates are from original image, not scaled one. -gdl.graphics.image documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.shape-drawer.html b/docs/gdl.graphics.shape-drawer.html deleted file mode 100644 index eff5098..0000000 --- a/docs/gdl.graphics.shape-drawer.html +++ /dev/null @@ -1,3 +0,0 @@ - -gdl.graphics.image
create
(create {:keys [assets world-unit-scale]} file & {:keys [scale]})
Scale can be a number or [width height] +get-scaled-copy
(get-scaled-copy {:keys [world-unit-scale]} image scale)
Scaled of original texture-dimensions, not any existing scale. +get-sub-image
(get-sub-image {:keys [assets world-unit-scale]} {:keys [file], :as image} & sub-image-bounds)
Coordinates are from original image, not scaled one. +gdl.graphics.shape-drawer documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.graphics.viewport.html b/docs/gdl.graphics.viewport.html index 42c6300..83beb13 100644 --- a/docs/gdl.graphics.viewport.html +++ b/docs/gdl.graphics.viewport.html @@ -1,3 +1,3 @@ -gdl.graphics.shape-drawer
gdl.graphics.viewport documentation \ No newline at end of file +Generated by Codox
Gdl main-SNAPSHOT
gdl.graphics.viewport documentation \ No newline at end of file diff --git a/docs/gdl.lc.html b/docs/gdl.lc.html index ffffebe..3ac4dc3 100644 --- a/docs/gdl.lc.html +++ b/docs/gdl.lc.html @@ -1,4 +1,4 @@ -Generated by Codox
Gdl main-SNAPSHOT
gdl.lc documentation Generated by Codox
Gdl main-SNAPSHOT
gdl.lc
https://libgdx.com/wiki/app/the-life-cycle +gdl.lc documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.raycaster.html b/docs/gdl.raycaster.html index 58f4833..40a0cd5 100644 --- a/docs/gdl.raycaster.html +++ b/docs/gdl.raycaster.html @@ -1,3 +1,3 @@ -gdl.lc
gdl.raycaster documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.raycaster
ray-blocked?
(ray-blocked? boolean-2d-array width height [start-x start-y] [target-x target-y])
gdl.raycaster documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.scene2d.actor.html b/docs/gdl.scene2d.actor.html index ba50739..a753e1f 100644 --- a/docs/gdl.scene2d.actor.html +++ b/docs/gdl.scene2d.actor.html @@ -1,3 +1,3 @@ -gdl.raycaster
ray-blocked?
(ray-blocked? boolean-2d-array width height [start-x start-y] [target-x target-y])
gdl.scene2d.actor documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.scene2d.actor
gdl.scene2d.actor documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.scene2d.stage.html b/docs/gdl.scene2d.stage.html index ca8b88a..25b356e 100644 --- a/docs/gdl.scene2d.stage.html +++ b/docs/gdl.scene2d.stage.html @@ -1,3 +1,3 @@ -gdl.scene2d.actor
gdl.scene2d.stage documentation \ No newline at end of file +Generated by Codox
Gdl main-SNAPSHOT
gdl.scene2d.stage documentation \ No newline at end of file diff --git a/docs/gdl.scene2d.ui.html b/docs/gdl.scene2d.ui.html index a235ca7..5967cf6 100644 --- a/docs/gdl.scene2d.ui.html +++ b/docs/gdl.scene2d.ui.html @@ -1,3 +1,3 @@ -Generated by Codox
Gdl main-SNAPSHOT
gdl.scene2d.ui documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +gdl.scene2d.ui
gdl.scene2d.ui documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.tiled.html b/docs/gdl.tiled.html index d280893..affb863 100644 --- a/docs/gdl.tiled.html +++ b/docs/gdl.tiled.html @@ -1,5 +1,5 @@ -gdl.scene2d.ui
gdl.tiled documentation Generated by Codox
Gdl main-SNAPSHOT
gdl.tiled
load-map
(load-map file)
Requires OpenGL context (texture generation). +gdl.tiled documentation Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file diff --git a/docs/gdl.vector.html b/docs/gdl.vector.html index d711398..70191ce 100644 --- a/docs/gdl.vector.html +++ b/docs/gdl.vector.html @@ -1,6 +1,6 @@ -gdl.tiled
property-value
(property-value position tiled-map layer property)
Returns the property value from layer and position. If there is no cell returns :no-cell and if the property value is undefined returns :undefined.gdl.vector documentation Generated by Codox
Gdl main-SNAPSHOT
gdl.vector
add-or-subtract-angle
(add-or-subtract-angle current-angle new-angle)
man will current in richtung new rotieren. muss man dazu add or subtract machen f�r den k�rzesten weg? +gdl.vector documentation Generated by Codox
Gdl main-SNAPSHOT
gdl.vector
add-or-subtract-angle
(add-or-subtract-angle current-angle new-angle)
man will current in richtung new rotieren. muss man dazu add or subtract machen f�r den k�rzesten weg? returns add or subtract-functionget-angle-from-vector
(get-angle-from-vector v)
converts theta of Vector2 to angle from top (top is 0 degree, moving left is 90 degree etc.), ->counterclockwiseget-angle-to-position
(get-angle-to-position {originx 0, :as origin} {targetx 0, :as target})
Treat Position a the middle of the coordinate sytem and the angle is from the top so if target is right of origin -> 90� below origin -> 180�vector-from-angle
(vector-from-angle angle)
Given a vector which points upwards on the y-axis, returns a vector rotated by angle degrees clockwise. diff --git a/docs/index.html b/docs/index.html index 92a763a..474910e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,3 +1,3 @@ -Gdl main-SNAPSHOT Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of file +Gdl main-SNAPSHOT
Installation
To install, add the following dependency to your project or build file:
[com.github.damn/gdl "main-SNAPSHOT"]Namespaces
Gdl main-SNAPSHOT Generated by Codox
Gdl main-SNAPSHOT
\ No newline at end of fileGdl main-SNAPSHOT
Installation
To install, add the following dependency to your project or build file:
[com.github.damn/gdl "main-SNAPSHOT"]Namespaces