summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Widen <andreas@harmonicflow.org>2015-07-16 18:56:33 +0200
committerAndreas Widen <andreas@harmonicflow.org>2015-07-16 18:56:33 +0200
commit048f367c475f56de0904cdf05dbc5f2276402168 (patch)
tree37403117144d07f3f811471a22453d57a3fc6e37
parent164cebdc2c96c9cd5730d95c3d0e9f42eb822749 (diff)
downloadHarmonicFlowOrgWeb-048f367c475f56de0904cdf05dbc5f2276402168.tar.xz
HarmonicFlowOrgWeb-048f367c475f56de0904cdf05dbc5f2276402168.zip
Fixed stylesheet for highlight.js + use default style.
Signed-off-by: Andreas Widen <andreas@harmonicflow.org>
-rw-r--r--blog/data/2015-07-04-20:54:11.txt97
-rwxr-xr-xcss/stylesheet.css12
-rwxr-xr-xinclude/meta.inc.php2
3 files changed, 61 insertions, 50 deletions
diff --git a/blog/data/2015-07-04-20:54:11.txt b/blog/data/2015-07-04-20:54:11.txt
index 62b9c85..ad26c02 100644
--- a/blog/data/2015-07-04-20:54:11.txt
+++ b/blog/data/2015-07-04-20:54:11.txt
@@ -27,64 +27,63 @@ getPow2Height).
for generating docs later.
**New methods in Graphics.h:**
-<pre><code class="cpp">
-/**
-* Set Ortho projection matrix. (left-handed)
-*
-* @param left Coordinate for the left vertical clipping plane.
-* @param right Coordinate for the right vertical clipping plane.
-* @param bottom Coordinate for the bottom horizontal clipping plane.
-* @param top Coordinate for the top horizontal clipping plane.
-* @param zNear Specify the distance to the near depth clipping plane.
-* @param zFar Specify the distance to the far depth clipping plane.
-*/
+<pre id="code"><code class="cpp">/**
+ * Set Ortho projection matrix. (left-handed)
+ *
+ * @param left Coordinate for the left vertical clipping plane.
+ * @param right Coordinate for the right vertical clipping plane.
+ * @param bottom Coordinate for the bottom horizontal clipping plane.
+ * @param top Coordinate for the top horizontal clipping plane.
+ * @param zNear Specify the distance to the near depth clipping plane.
+ * @param zFar Specify the distance to the far depth clipping plane.
+ */
virtual void setOrthoProjectionLH(fp32_hf left, fp32_hf right,
fp32_hf bottom, fp32_hf top,
fp32_hf zNear, fp32_hf zFar) = 0;
/**
-* Set Perspective projection matrix. (left-handed)
-*
-* @param fovyDeg Field of view angle, in degrees, in the y direction.
-* @param aspect The aspect ratio is the ratio of x (width) to y (height).
-* @param zNear Specify the distance to the near depth clipping plane.
-* @param zFar Specify the distance to the far depth clipping plane.
-*/
+ * Set Perspective projection matrix. (left-handed)
+ *
+ * @param fovyDeg Field of view angle, in degrees, in the y direction.
+ * @param aspect The aspect ratio is the ratio of x (width) to y (height).
+ * @param zNear Specify the distance to the near depth clipping plane.
+ * @param zFar Specify the distance to the far depth clipping plane.
+ */
virtual void setPerspectiveProjectionLH(fp32_hf fovyDeg, fp32_hf aspect,
fp32_hf zNear, fp32_hf zFar) = 0;
/**
-* Creates a viewing matrix derived from an eye point, a reference
-* point indicating the center of the scene, and an UP vector.
-* (left-handed)
-*
-* @param eye Specifies the position of the eye point.
-* @param lookAt Specifies the position of the reference point.
-* @param upDirection Specifies the direction of the up vector.
-*/
+ * Creates a viewing matrix derived from an eye point, a reference
+ * point indicating the center of the scene, and an UP vector.
+ * (left-handed)
+ *
+ * @param eye Specifies the position of the eye point.
+ * @param lookAt Specifies the position of the reference point.
+ * @param upDirection Specifies the direction of the up vector.
+ */
virtual void setLookAtLH(const Vector3 &eye, const Vector3 &lookAt,
const Vector3 &upDirection) = 0;
/**
-* Enable pixel perfect vertex center.
-* Useful only when using Ortho projection where 1 unit = 1 pixel.
-* if enabled maxX = w/2, maxY = h/2, minX = -maxX and minY = -maxY
-* if disabled maxX/maxY = 0.5f and minX/minY = -0.5f
-*
-* @param enable Enable/disable Pixel Perfect Vertex Center.
-*/
+ * Enable pixel perfect vertex center.
+ * Useful only when using Ortho projection where 1 unit = 1 pixel.
+ * if enabled maxX = w/2, maxY = h/2, minX = -maxX and minY = -maxY
+ * if disabled maxX/maxY = 0.5f and minX/minY = -0.5f
+ *
+ * @param enable Enable/disable Pixel Perfect Vertex Center.
+ */
virtual void setVertexCenterPixelPerfect(bool enable) = 0;
/**
-* Check if pixel perfect center is enabled.
-*
-* @return true if Pixel Perfect Center enabled, else false.
-*/
+ * Check if pixel perfect center is enabled.
+ *
+ * @return true if Pixel Perfect Center enabled, else false.
+ */
virtual bool isVertexCenterPixelPerfect() = 0;
-/*
-* geometric primitive drawing methods
-*/
+/**
+ * geometric primitive drawing methods
+ */
virtual void drawPoint(fp32_hf x, fp32_hf y) = 0;
virtual void drawPoint(const Vector2 &v0) = 0;
@@ -118,9 +117,9 @@ virtual void fillTriangle(fp32_hf x0, fp32_hf y0, fp32_hf x1, fp32_hf
virtual void fillTriangle(const Vector2 &v0, const Vector2 &v1,
const Vector2 &v2) = 0;
-/*
-* geometric primitive drawing methods (batch)
-*/
+/**
+ * geometric primitive drawing methods (batch)
+ */
virtual void drawPointBatch(fp32_hf x, fp32_hf y, Color color,
DrawMode drawMode = DRAWMODE_NORMAL) = 0;
virtual void drawPointBatch(const Vector2 &v0, Color color,
@@ -144,15 +143,15 @@ virtual void fillTriangleBatch(const Vector2 &v0, const Vector2 &v1,
const Vector2 &v2, Color color,
DrawMode drawMode = DRAWMODE_NORMAL) = 0;
-/*
-* geometric primitive drawing:
-*/
+/**
+ * geometric primitive drawing:
+ */
virtual void drawGeometry(Geometry *geometry, uint32_hf startIndex,
uint32_hf vertexCount, RenderType renderType) = 0;
-/*
-* Batch render queue control
-*/
+/**
+ * Batch render queue control
+ */
virtual void setCreateNewBatchPrimitiveQueue(bool create,
PrimitiveType type) = 0;
</code></pre>
diff --git a/css/stylesheet.css b/css/stylesheet.css
index c6d36de..585cf4a 100755
--- a/css/stylesheet.css
+++ b/css/stylesheet.css
@@ -296,6 +296,18 @@ pre
font-size: 12px;
}
+pre#code
+{
+ margin-bottom: 1em;
+ margin-top: 0em;
+ overflow: auto;
+ background: #E3E3E3;
+ border: solid;
+ border-width: thin;
+ padding: 1px 1px;
+ font-size: 12px;
+}
+
div#left ul
{
padding: 0 0 14px;
diff --git a/include/meta.inc.php b/include/meta.inc.php
index 0b43d88..4eb33cf 100755
--- a/include/meta.inc.php
+++ b/include/meta.inc.php
@@ -2,6 +2,6 @@
<link rel="icon" type="image/ico" href="/webpageicon.ico">
<link rel="stylesheet" href="/css/fontfacekit/stylesheet.css">
<link rel="stylesheet" href="/css/stylesheet.css">
-<link rel="stylesheet" href="/css/highlight.js/8.6/obsidian.css">
+<link rel="stylesheet" href="/css/highlight.js/8.6/default.css">
<script src="/js/highlight.js/8.6/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>