mirror of
https://github.com/ssloy/tinyraytracer.git
synced 2025-08-18 12:01:17 +02:00
Added gitpod support
This commit is contained in:
12
.gitpod.yml
Normal file
12
.gitpod.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
image:
|
||||||
|
file: Dockerfile
|
||||||
|
tasks:
|
||||||
|
- command: >
|
||||||
|
mkdir --parents build &&
|
||||||
|
cd build &&
|
||||||
|
cmake .. &&
|
||||||
|
make &&
|
||||||
|
./tinyraytracer &&
|
||||||
|
pnmtopng out.ppm > out.png &&
|
||||||
|
open out.png &&
|
||||||
|
cd ..
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM gitpod/workspace-full
|
||||||
|
|
||||||
|
USER root
|
||||||
|
# add your tools here
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
netpbm
|
@@ -17,6 +17,14 @@ cd build
|
|||||||
cmake ..
|
cmake ..
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can open the project in Gitpod, a free online dev evironment for GitHub:
|
||||||
|
|
||||||
|
[](https://gitpod.io/#https://github.com/ssloy/tinyraytracer)
|
||||||
|
|
||||||
|
On open, the editor will compile & run the program as well as open the resulting image in the editor's preview.
|
||||||
|
Just change the code in the editor and rerun the script (use the terminal's history) to see updated images.
|
||||||
|
|
||||||
# Homework assignment
|
# Homework assignment
|
||||||
[homework_assignment branch](https://github.com/ssloy/tinyraytracer/tree/homework_assignment) contains all necessary stuff to easily add environment maps:
|
[homework_assignment branch](https://github.com/ssloy/tinyraytracer/tree/homework_assignment) contains all necessary stuff to easily add environment maps:
|
||||||

|

|
||||||
|
Reference in New Issue
Block a user