Display a textured cube with Raylib #2
No files matched your search
@@ -3,6 +3,7 @@ build
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.gradle
|
.gradle
|
||||||
gradle-daemon-jvm.properties
|
gradle-daemon-jvm.properties
|
||||||
|
*.html
|
||||||
.idea
|
.idea
|
||||||
.kotlin
|
.kotlin
|
||||||
local.properties
|
local.properties
|
||||||
|
|||||||
@@ -177,3 +177,8 @@ downloadable HTML file with a line-by-line table of the file and its
|
|||||||
explanations (and, on request, a second version highlighting changes after a
|
explanations (and, on request, a second version highlighting changes after a
|
||||||
fix) — follow the skill in `docs/file-summary.md`.
|
fix) — follow the skill in `docs/file-summary.md`.
|
||||||
|
|
||||||
|
- Write the result to `docs/<FileName>.html` (e.g. `docs/RaylibGLView.html`) and
|
||||||
|
name the file's Git revision in the header. The file is the source of truth —
|
||||||
|
document the exact revision requested, not the working tree.
|
||||||
|
- Existing example: `docs/RaylibGLView.html` (single-cube `RaylibGLView.swift`).
|
||||||
|
|
||||||
@@ -99,13 +99,11 @@ final class RaylibGLNSView: NSOpenGLView {
|
|||||||
|
|
||||||
override func reshape() {
|
override func reshape() {
|
||||||
super.reshape()
|
super.reshape()
|
||||||
updatePixelSize()
|
|
||||||
needsDisplay = true
|
needsDisplay = true
|
||||||
}
|
}
|
||||||
|
|
||||||
override func viewDidChangeBackingProperties() {
|
override func viewDidChangeBackingProperties() {
|
||||||
super.viewDidChangeBackingProperties()
|
super.viewDidChangeBackingProperties()
|
||||||
updatePixelSize()
|
|
||||||
needsDisplay = true
|
needsDisplay = true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,7 +123,7 @@ final class RaylibGLNSView: NSOpenGLView {
|
|||||||
|
|
||||||
let t = Float(CACurrentMediaTime() - startTime)
|
let t = Float(CACurrentMediaTime() - startTime)
|
||||||
|
|
||||||
sr_set_rotation(t * 18.0, t * 60.0, 0.0)
|
sr_set_rotation(t * 6.0, t * 18.0, 0.0)
|
||||||
|
|
||||||
sr_render()
|
sr_render()
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,14 @@ This document describes preparing a self-contained HTML file for studying source
|
|||||||
code in a browser: a line-by-line table with explanations and, if needed, a
|
code in a browser: a line-by-line table with explanations and, if needed, a
|
||||||
separate version after the code has been changed.
|
separate version after the code has been changed.
|
||||||
|
|
||||||
|
## Output file
|
||||||
|
|
||||||
|
1. Write the result to `docs/<SourceFileName>.html`, named after the source file
|
||||||
|
it documents (for example `docs/RaylibGLView.html` for `RaylibGLView.swift`).
|
||||||
|
2. The document is the source of truth for the revision it names: capture the
|
||||||
|
file at the exact Git revision requested and record that revision in the
|
||||||
|
header, rather than documenting the current working tree.
|
||||||
|
|
||||||
## Source code and explanations
|
## Source code and explanations
|
||||||
|
|
||||||
1. Use the exact version of the file the user requested. For the version prior to
|
1. Use the exact version of the file the user requested. For the version prior to
|
||||||
|
|||||||
Reference in new issue
Block a user