-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
518041f
commit 83dabe4
Showing
10 changed files
with
165 additions
and
3 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
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,20 @@ | ||
<!-- | ||
category: reference | ||
--> | ||
|
||
Buffer:getVertexFormat | ||
=== | ||
|
||
Get the format table of the Buffer's vertices. | ||
|
||
format = buffer:getVertexFormat() | ||
|
||
### Arguments | ||
|
||
None | ||
|
||
### Returns | ||
|
||
- `table format` The table of vertex attributes. Each attribute is a table containing the name | ||
of the attribute (string), the data type (string), and the number of components of the attribute | ||
(number). |
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,20 @@ | ||
<!-- | ||
category: reference | ||
--> | ||
|
||
HeadsetEye | ||
=== | ||
|
||
Represents either the left or right eye. | ||
|
||
Values | ||
--- | ||
|
||
- `left` The left eye. | ||
- `right` The right eye. | ||
|
||
See also | ||
--- | ||
|
||
- `lovr.headset.getEyePosition` | ||
- `lovr.draw` |
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ See also | |
--- | ||
|
||
- `lovr.headset.renderTo` | ||
- `HeadsetEye` |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- | ||
category: reference | ||
--> | ||
|
||
lovr.graphics.transform | ||
=== | ||
|
||
Transform the coordinate system using a `Transform` object. Transforms provide a convenient way | ||
to represent translations, rotations, and scales in a single object. All coordinates used in | ||
drawing operations will be transformed by the specified Transform until the coordinate system is | ||
popped off the stack. | ||
|
||
Note that order matters when transforming the coordinate system. | ||
|
||
lovr.graphics.transform(transform) | ||
|
||
### Arguments | ||
|
||
- `Transform transform` The Transform to apply to the coordinate system. | ||
|
||
### Returns | ||
|
||
Nothing | ||
|
||
See also | ||
--- | ||
|
||
- `Transform` |
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,20 @@ | ||
<!-- | ||
category: reference | ||
--> | ||
|
||
lovr.headset.getEyePosition | ||
=== | ||
|
||
Returns the current position of one the headset's eyes in 3d space. | ||
|
||
x, y, z = lovr.headset.getEyePosition(eye) | ||
|
||
### Arguments | ||
|
||
- `HeadsetEye eye` The eye to return the position of. | ||
|
||
### Returns | ||
|
||
- `number x` The x position of the headset. | ||
- `number y` The y position of the headset. | ||
- `number z` The y position of the headset. |