1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 14:02:59 +00:00

updated to 10.0c

This commit is contained in:
Zeno Rogue
2017-07-23 01:33:27 +02:00
parent ce5650a81f
commit 8cb8e2a3ec
45 changed files with 2384 additions and 1359 deletions

View File

@@ -1,7 +1,7 @@
// HyperRogue paper model generator
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details
#ifndef NOMODEL
#if CAP_MODEL
namespace netgen {
// We need a two-dimensional vector class for this.
@@ -214,13 +214,13 @@ namespace netgen {
//============================
void blackline(vec v1, vec v2, int col = 0x000000FF) {
#ifdef GFX
#if CAP_SDLGFX==1
aalineColor(s, int(v1.x), int(v1.y), int(v2.x), int(v2.y), col);
#endif
}
void drawtriangle(vec v1, vec v2, vec v3, int col) {
#ifdef GFX
#if CAP_SDLGFX==1
polyx[0] = int(v1.x);
polyx[1] = int(v2.x);
polyx[2] = int(v3.x);
@@ -232,7 +232,7 @@ namespace netgen {
}
void blackcircle(vec v, int r, int col = 0x000000FF) {
#ifdef GFX
#if CAP_SDLGFX
aacircleColor(s, int(v.x), int(v.y), r, col);
#endif
}
@@ -297,7 +297,7 @@ namespace netgen {
// draw the model
void createPapermodel() {
#ifndef GFX
#if !CAP_SDLGFX
addMessage(XLAT("High quality shots not available on this platform"));
return;
#endif