Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wolf3d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Hörnquist
wolf3d
Commits
83d9c6c3
Commit
83d9c6c3
authored
6 years ago
by
Filip Polbratt
Browse files
Options
Downloads
Patches
Plain Diff
Made project slightly more portable.
parent
3f770d2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.scm
+2
-5
2 additions, 5 deletions
main.scm
with
2 additions
and
5 deletions
main.scm
+
2
−
5
View file @
83d9c6c3
...
...
@@ -176,9 +176,6 @@
(
ray
(
cdr
r
)))
(
let*
((
l
(
vector-length
ray
))
(
segment-height
(
-
480
(
*
70
l
))))
(
set-draw-color
0
(
int
(
min
#xFF
(
-
#x100
(
*
#x100
(
/
l
7
)))))
(
int
(
min
#xFF
(
-
#x100
(
*
#x100
(
/
l
7
))))))
(
render-copy
(
current-renderer
)
brick-texture
...
...
@@ -251,7 +248,7 @@
(
define
(
main-loop
window
)
(
define
rend
(
make-renderer
window
'
(
accelerated
#
; vsync texture)))
(
define
last-t
(
get-t
))
(
set!
brick-texture
(
surface->texture
rend
(
load-image
"
.
/purplebrick.png"
)))
(
set!
brick-texture
(
surface->texture
rend
(
load-image
(
string-append
(
dirname
(
current-filename
))
"/purplebrick.png"
)))
)
(
let
loop
((
counter
0
))
...
...
@@ -273,7 +270,7 @@
(
sdl-init
)
(
ttf-init
)
(
current-font
(
load-font
"/usr/share/fonts/
OTF/FiraMono-Regular.o
tf"
12
))
(
current-font
(
load-font
"/usr/share/fonts/
truetype/gentium/Gentium-R.t
tf"
12
))
(
format
#t
"Loaded font ~a~%"
(
current-font
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment