projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code refactoring
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
renderer
/
raster
/
shapes
/
composite
/
ForwardOrientedTextBlock.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java
b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java
index
49cd9e8
..
800c6bd
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java
@@
-1,10
+1,10
@@
/*
/*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Sixth 3D engine. Copyright ©2012-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
+ *
*/
package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite;
*/
package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite;
@@
-28,7
+28,7
@@
public class ForwardOrientedTextBlock extends ForwardOrientedTexture {
final eu.svjatoslav.sixth.e3d.renderer.raster.Color textColor) {
final Texture texture = new Texture(text.length()
final eu.svjatoslav.sixth.e3d.renderer.raster.Color textColor) {
final Texture texture = new Texture(text.length()
- * TextCanvas.FONT_CHAR_WIDTH
, TextCanvas.FONT_CHAR_HEIGHT
,
+ * TextCanvas.FONT_CHAR_WIDTH
_PIXELS, TextCanvas.FONT_CHAR_HEIGHT_PIXELS
,
maxUpscaleFactor);
// texture.graphics.setColor(Color.BLUE);
maxUpscaleFactor);
// texture.graphics.setColor(Color.BLUE);
@@
-40,8
+40,8
@@
public class ForwardOrientedTextBlock extends ForwardOrientedTexture {
for (int c = 0; c < text.length(); c++)
texture.graphics.drawChars(new char[]{text.charAt(c),}, 0, 1,
for (int c = 0; c < text.length(); c++)
texture.graphics.drawChars(new char[]{text.charAt(c),}, 0, 1,
- (c * TextCanvas.FONT_CHAR_WIDTH) - 0,
- (0 * TextCanvas.FONT_CHAR_HEIGHT) + 11);
+ (c * TextCanvas.FONT_CHAR_WIDTH
_PIXELS
) - 0,
+ (0 * TextCanvas.FONT_CHAR_HEIGHT
_PIXELS
) + 11);
return texture;
}
return texture;
}