Commit 33a74f13 authored by Sven Eckelmann's avatar Sven Eckelmann

Imported Upstream version 0.0.8

parent eecdf6b3
Changes since version 0.0.7:
* imp_dae: build fix for !HAVE_LIBGSF case
* general: LGPL boilerplates and copyright years updated
* doc: API documentation updated
Changes since version 0.0.6:
* doc: API documentation updated
* plugins: converted to G3DStream interface
......
......@@ -2026,12 +2026,12 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
VERSION=0.0.7
VERSION=0.0.8
LTVERSION="0:7:0"
LTVERSION="0:8:0"
PACKAGE=libg3d
......
......@@ -5,8 +5,8 @@ AC_CONFIG_AUX_DIR(config)
# versioning stuff
m4_define([g3d_major_version], [0])
m4_define([g3d_minor_version], [0])
m4_define([g3d_micro_version], [7])
m4_define([g3d_interface_age], [7])
m4_define([g3d_micro_version], [8])
m4_define([g3d_interface_age], [8])
m4_define([g3d_version],
[g3d_major_version.g3d_minor_version.g3d_micro_version])
m4_define([g3d_binary_age],
......
SUBDIRS = api support_matrix
EXTRA_DIST = RELEASE-NOTES-0.0.7.txt
EXTRA_DIST = RELEASE-NOTES-0.0.7.txt RELEASE-NOTES-0.0.8.txt
......@@ -198,7 +198,7 @@ target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = api support_matrix
EXTRA_DIST = RELEASE-NOTES-0.0.7.txt
EXTRA_DIST = RELEASE-NOTES-0.0.7.txt RELEASE-NOTES-0.0.8.txt
all: all-recursive
.SUFFIXES:
......
......@@ -4,7 +4,7 @@ libg3d 0.0.7 "now or never"
While there was a constant flow of changes and additions in the source code
repository it has been over a year since the last "official" release.
The 0.0.7 release introduces a log of changes, most notably an abstraction
The 0.0.7 release introduces a lot of changes, most notably an abstraction
of the input stream, a lot of new and updated plugins, a handful of bug
fixes and some general improvements. Check the ChangeLog for some more
detailed information or just try it out.
......
libg3d 0.0.8 "there is always one bug left"
===========================================
As it turns out the libg3d release did not build without libgsf support
enabled. This release mainly fixes the problem but also adds a small API
documentation update.
......@@ -7,7 +7,7 @@
<link rel="start" href="index.html" title="libg3d Reference Manual">
<link rel="up" href="index.html" title="libg3d Reference Manual">
<link rel="prev" href="index.html" title="libg3d Reference Manual">
<link rel="next" href="libg3d-context.html" title="context">
<link rel="next" href="libg3d-types.html" title="types">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Application interface">
......@@ -19,13 +19,16 @@
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libg3d Reference Manual</th>
<td><a accesskey="n" href="libg3d-context.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
<td><a accesskey="n" href="libg3d-types.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="chapter" lang="en">
<div class="titlepage"><div><div><h2 class="title">
<a name="id2500287"></a>Application interface</h2></div></div></div>
<div class="toc"><dl>
<dt>
<span class="refentrytitle"><a href="libg3d-types.html">types</a></span><span class="refpurpose"> — Basic types</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libg3d-context.html">context</a></span><span class="refpurpose"> — Libg3d initialization and configuration</span>
</dt>
<dt>
......
......@@ -23,7 +23,7 @@
</tr></table>
<div class="chapter" lang="en">
<div class="titlepage"><div><div><h2 class="title">
<a name="id2501199"></a>Plugin interface</h2></div></div></div>
<a name="id2501204"></a>Plugin interface</h2></div></div></div>
<div class="toc"><dl>
<dt>
<span class="refentrytitle"><a href="libg3d-plugins.html">plugins</a></span><span class="refpurpose"> — G3DPlugin interface</span>
......@@ -46,6 +46,9 @@
<dt>
<span class="refentrytitle"><a href="libg3d-vector.html">vector</a></span><span class="refpurpose"> — Vector manipulation and calculation</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libg3d-quat.html">quat</a></span><span class="refpurpose"> — quaternion helpers</span>
</dt>
</dl></div>
</div>
<div class="footer">
......
......@@ -28,6 +28,9 @@
<dt><span class="chapter"><a href="ch01.html">Application interface</a></span></dt>
<dd><dl>
<dt>
<span class="refentrytitle"><a href="libg3d-types.html">types</a></span><span class="refpurpose"> — Basic types</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libg3d-context.html">context</a></span><span class="refpurpose"> — Libg3d initialization and configuration</span>
</dt>
<dt>
......@@ -69,6 +72,9 @@
<dt>
<span class="refentrytitle"><a href="libg3d-vector.html">vector</a></span><span class="refpurpose"> — Vector manipulation and calculation</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libg3d-quat.html">quat</a></span><span class="refpurpose"> — quaternion helpers</span>
</dt>
</dl></dd>
</dl></div>
</div>
......
<ONLINE href="http://automagically.de/libg3d/index.html">
<ANCHOR id="libg3d-types" href="libg3d/libg3d-types.html">
<ANCHOR id="libg3d-types.synopsis" href="libg3d/libg3d-types.html#libg3d-types.synopsis">
<ANCHOR id="libg3d-types.description" href="libg3d/libg3d-types.html#libg3d-types.description">
<ANCHOR id="libg3d-types.details" href="libg3d/libg3d-types.html#libg3d-types.details">
<ANCHOR id="G3DSingle" href="libg3d/libg3d-types.html#G3DSingle">
<ANCHOR id="G3DDouble" href="libg3d/libg3d-types.html#G3DDouble">
<ANCHOR id="G3DFloat" href="libg3d/libg3d-types.html#G3DFloat">
<ANCHOR id="G3D-FLOAT-IS-DOUBLE:CAPS" href="libg3d/libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS">
<ANCHOR id="libg3d-context" href="libg3d/libg3d-context.html">
<ANCHOR id="libg3d-context.synopsis" href="libg3d/libg3d-context.html#libg3d-context.synopsis">
<ANCHOR id="libg3d-context.description" href="libg3d/libg3d-context.html#libg3d-context.description">
......@@ -30,6 +38,7 @@
<ANCHOR id="g3d-model-load-full" href="libg3d/libg3d-model.html#g3d-model-load-full">
<ANCHOR id="g3d-model-check" href="libg3d/libg3d-model.html#g3d-model-check">
<ANCHOR id="g3d-model-center" href="libg3d/libg3d-model.html#g3d-model-center">
<ANCHOR id="g3d-model-transform" href="libg3d/libg3d-model.html#g3d-model-transform">
<ANCHOR id="g3d-model-clear" href="libg3d/libg3d-model.html#g3d-model-clear">
<ANCHOR id="g3d-model-free" href="libg3d/libg3d-model.html#g3d-model-free">
<ANCHOR id="g3d-model-get-object-by-name" href="libg3d/libg3d-model.html#g3d-model-get-object-by-name">
......@@ -111,7 +120,9 @@
<ANCHOR id="g3d-stream-open-structured-file-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-structured-file-from-stream">
<ANCHOR id="g3d-stream-open-zip" href="libg3d/libg3d-stream.html#g3d-stream-open-zip">
<ANCHOR id="g3d-stream-open-zip-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-zip-from-stream">
<ANCHOR id="g3d-stream-open-gzip-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-gzip-from-stream">
<ANCHOR id="g3d-stream-from-buffer" href="libg3d/libg3d-stream.html#g3d-stream-from-buffer">
<ANCHOR id="g3d-stream-zlib-inflate-stream" href="libg3d/libg3d-stream.html#g3d-stream-zlib-inflate-stream">
<ANCHOR id="g3d-stream-new-custom" href="libg3d/libg3d-stream.html#g3d-stream-new-custom">
<ANCHOR id="g3d-stream-close" href="libg3d/libg3d-stream.html#g3d-stream-close">
<ANCHOR id="g3d-stream-skip" href="libg3d/libg3d-stream.html#g3d-stream-skip">
......@@ -121,6 +132,7 @@
<ANCHOR id="g3d-stream-eof" href="libg3d/libg3d-stream.html#g3d-stream-eof">
<ANCHOR id="g3d-stream-is-seekable" href="libg3d/libg3d-stream.html#g3d-stream-is-seekable">
<ANCHOR id="g3d-stream-get-uri" href="libg3d/libg3d-stream.html#g3d-stream-get-uri">
<ANCHOR id="g3d-stream-line" href="libg3d/libg3d-stream.html#g3d-stream-line">
<ANCHOR id="g3d-stream-read" href="libg3d/libg3d-stream.html#g3d-stream-read">
<ANCHOR id="g3d-stream-read-line" href="libg3d/libg3d-stream.html#g3d-stream-read-line">
<ANCHOR id="g3d-stream-read-int8" href="libg3d/libg3d-stream.html#g3d-stream-read-int8">
......@@ -191,6 +203,7 @@
<ANCHOR id="g3d-primitive-cube" href="libg3d/libg3d-primitive.html#g3d-primitive-cube">
<ANCHOR id="g3d-primitive-box" href="libg3d/libg3d-primitive.html#g3d-primitive-box">
<ANCHOR id="g3d-primitive-box-strip-2d" href="libg3d/libg3d-primitive.html#g3d-primitive-box-strip-2d">
<ANCHOR id="g3d-primitive-mesh" href="libg3d/libg3d-primitive.html#g3d-primitive-mesh">
<ANCHOR id="g3d-primitive-cylinder" href="libg3d/libg3d-primitive.html#g3d-primitive-cylinder">
<ANCHOR id="g3d-primitive-tube" href="libg3d/libg3d-primitive.html#g3d-primitive-tube">
<ANCHOR id="g3d-primitive-sphere" href="libg3d/libg3d-primitive.html#g3d-primitive-sphere">
......@@ -198,6 +211,7 @@
<ANCHOR id="libg3d-matrix.synopsis" href="libg3d/libg3d-matrix.html#libg3d-matrix.synopsis">
<ANCHOR id="libg3d-matrix.description" href="libg3d/libg3d-matrix.html#libg3d-matrix.description">
<ANCHOR id="libg3d-matrix.details" href="libg3d/libg3d-matrix.html#libg3d-matrix.details">
<ANCHOR id="G3DMatrix" href="libg3d/libg3d-matrix.html#G3DMatrix">
<ANCHOR id="g3d-matrix-identity" href="libg3d/libg3d-matrix.html#g3d-matrix-identity">
<ANCHOR id="g3d-matrix-multiply" href="libg3d/libg3d-matrix.html#g3d-matrix-multiply">
<ANCHOR id="g3d-matrix-translate" href="libg3d/libg3d-matrix.html#g3d-matrix-translate">
......@@ -211,6 +225,18 @@
<ANCHOR id="libg3d-vector.synopsis" href="libg3d/libg3d-vector.html#libg3d-vector.synopsis">
<ANCHOR id="libg3d-vector.description" href="libg3d/libg3d-vector.html#libg3d-vector.description">
<ANCHOR id="libg3d-vector.details" href="libg3d/libg3d-vector.html#libg3d-vector.details">
<ANCHOR id="G3DVector" href="libg3d/libg3d-vector.html#G3DVector">
<ANCHOR id="g3d-vector-normal" href="libg3d/libg3d-vector.html#g3d-vector-normal">
<ANCHOR id="g3d-vector-unify" href="libg3d/libg3d-vector.html#g3d-vector-unify">
<ANCHOR id="g3d-vector-transform" href="libg3d/libg3d-vector.html#g3d-vector-transform">
<ANCHOR id="libg3d-quat" href="libg3d/libg3d-quat.html">
<ANCHOR id="libg3d-quat.synopsis" href="libg3d/libg3d-quat.html#libg3d-quat.synopsis">
<ANCHOR id="libg3d-quat.description" href="libg3d/libg3d-quat.html#libg3d-quat.description">
<ANCHOR id="libg3d-quat.details" href="libg3d/libg3d-quat.html#libg3d-quat.details">
<ANCHOR id="G3DQuat" href="libg3d/libg3d-quat.html#G3DQuat">
<ANCHOR id="g3d-quat-add" href="libg3d/libg3d-quat.html#g3d-quat-add">
<ANCHOR id="g3d-quat-normalize" href="libg3d/libg3d-quat.html#g3d-quat-normalize">
<ANCHOR id="g3d-quat-rotate" href="libg3d/libg3d-quat.html#g3d-quat-rotate">
<ANCHOR id="g3d-quat-to-matrix" href="libg3d/libg3d-quat.html#g3d-quat-to-matrix">
<ANCHOR id="g3d-quat-to-rotation-xyz" href="libg3d/libg3d-quat.html#g3d-quat-to-rotation-xyz">
<ANCHOR id="g3d-quat-trackball" href="libg3d/libg3d-quat.html#g3d-quat-trackball">
......@@ -6,7 +6,7 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="libg3d Reference Manual">
<link rel="up" href="ch01.html" title="Application interface">
<link rel="prev" href="ch01.html" title="Application interface">
<link rel="prev" href="libg3d-types.html" title="types">
<link rel="next" href="libg3d-model.html" title="model">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
......@@ -16,7 +16,7 @@
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="p" href="libg3d-types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libg3d Reference Manual</th>
......@@ -46,10 +46,10 @@
void <a class="link" href="libg3d-context.html#g3d-context-free" title="g3d_context_free ()">g3d_context_free</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (<a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">*G3DSetBgColorFunc</a>) (G3DFloat r,
G3DFloat g,
G3DFloat b,
G3DFloat a,
>gboolean</a> (<a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">*G3DSetBgColorFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
......@@ -60,7 +60,7 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">*G3DUpdateProgressBarFunc</a>) (G3DFloat percentage,
>gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">*G3DUpdateProgressBarFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show,
......@@ -79,7 +79,7 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-update-progress-bar" title="g3d_context_update_progress_bar ()">g3d_context_update_progress_bar</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
G3DFloat percentage,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visibility);
......@@ -92,10 +92,10 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-set-bgcolor" title="g3d_context_set_bgcolor ()">g3d_context_set_bgcolor</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
G3DFloat r,
G3DFloat g,
G3DFloat b,
G3DFloat a);
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a);
void <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()">g3d_context_set_set_bgcolor_func</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
<a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func,
<a
......@@ -168,10 +168,10 @@ memory.</p>
<a name="G3DSetBgColorFunc"></a><h3>G3DSetBgColorFunc ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (*G3DSetBgColorFunc) (G3DFloat r,
G3DFloat g,
G3DFloat b,
G3DFloat a,
>gboolean</a> (*G3DSetBgColorFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre>
......@@ -250,7 +250,7 @@ Interface updating callback.</p>
<a name="G3DUpdateProgressBarFunc"></a><h3>G3DUpdateProgressBarFunc ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (*G3DUpdateProgressBarFunc) (G3DFloat percentage,
>gboolean</a> (*G3DUpdateProgressBarFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show,
......@@ -362,7 +362,7 @@ Registers a callback function for updating the interface.</p>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_context_update_progress_bar (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
G3DFloat percentage,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visibility);</pre>
......@@ -438,10 +438,10 @@ Registers a callback function for updating the progress bar.</p>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_context_set_bgcolor (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
G3DFloat r,
G3DFloat g,
G3DFloat b,
G3DFloat a);</pre>
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a);</pre>
<p>
Try to set the background color. This will call a function registered
with <em class="parameter"><code>g3d_context_set_set_bgcolor_func</code></em>.</p>
......
......@@ -49,9 +49,9 @@
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-face.html#g3d-face-get-normal" title="g3d_face_get_normal ()">g3d_face_get_normal</a> (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face,
<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DFloat *nx,
G3DFloat *ny,
G3DFloat *nz);
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);
void <a class="link" href="libg3d-face.html#g3d-face-free" title="g3d_face_free ()">g3d_face_free</a> (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face);
</pre>
</div>
......@@ -151,8 +151,8 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
</td>
</tr>
<tr>
<td><p><span class="term">G3DVector *<em class="structfield"><code>normals</code></em>;</span></p></td>
<td> optional normal array (one vector - 3 <span class="type">G3DVector</span> values - for each
<td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>normals</code></em>;</span></p></td>
<td> optional normal array (one vector - 3 <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector"><span class="type">G3DVector</span></a> values - for each
vertex)
</td>
</tr>
......@@ -170,7 +170,7 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
</td>
</tr>
<tr>
<td><p><span class="term">G3DVector *<em class="structfield"><code>tex_vertex_data</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>tex_vertex_data</code></em>;</span></p></td>
<td> array of texture vertices
</td>
</tr>
......@@ -184,9 +184,9 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_face_get_normal (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face,
<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DFloat *nx,
G3DFloat *ny,
G3DFloat *nz);</pre>
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre>
<p>
calculates the normal of a face.</p>
<p>
......
......@@ -85,32 +85,32 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>r</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>r</code></em>;</span></p></td>
<td> red component of color
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>g</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>g</code></em>;</span></p></td>
<td> green component of color
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>b</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>b</code></em>;</span></p></td>
<td> blue component of color
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>a</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>a</code></em>;</span></p></td>
<td> alpha component of color
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>shininess</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>shininess</code></em>;</span></p></td>
<td> shiny color
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>specular</code></em>[4];</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>specular</code></em>[4];</span></p></td>
<td> specular color
</td>
</tr>
......
This diff is collapsed.
......@@ -64,6 +64,10 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-center" title="g3d_model_center ()">g3d_model_center</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-transform" title="g3d_model_transform ()">g3d_model_transform</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
void <a class="link" href="libg3d-model.html#g3d-model-clear" title="g3d_model_clear ()">g3d_model_clear</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
void <a class="link" href="libg3d-model.html#g3d-model-free" title="g3d_model_free ()">g3d_model_free</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-model.html#g3d-model-get-object-by-name" title="g3d_model_get_object_by_name ()">g3d_model_get_object_by_name</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
......@@ -324,6 +328,39 @@ Translates all object coordinates that the object center is at (0, 0, 0)</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="g3d-model-transform"></a><h3>g3d_model_transform ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_model_transform (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
<p>
Transform all toplevel objects in model with matrix.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td> the model
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
<td> transformation matrix
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success, FALSE else
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="g3d-model-clear"></a><h3>g3d_model_clear ()</h3>
<pre class="programlisting">void g3d_model_clear (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
<p>
......
......@@ -50,15 +50,15 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-scale" title="g3d_object_scale ()">g3d_object_scale</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DFloat scale);
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> scale);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-transform" title="g3d_object_transform ()">g3d_object_transform</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DMatrix *matrix);
<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-transform-normals" title="g3d_object_transform_normals ()">g3d_object_transform_normals</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DMatrix *matrix);
<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-object.html#g3d-object-duplicate" title="g3d_object_duplicate ()">g3d_object_duplicate</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
......@@ -160,7 +160,7 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
</td>
</tr>
<tr>
<td><p><span class="term">G3DVector *<em class="structfield"><code>vertex_data</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>vertex_data</code></em>;</span></p></td>
<td> vertex vector data
</td>
</tr>
......@@ -184,7 +184,7 @@ A three-dimensional matrix transformation object.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term">G3DMatrix <em class="structfield"><code>matrix</code></em>[16];</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> <em class="structfield"><code>matrix</code></em>[16];</span></p></td>
<td> the transformation matrix
</td>
</tr>
......@@ -250,7 +250,7 @@ center to a vertex.</p>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_object_scale (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DFloat scale);</pre>
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> scale);</pre>
<p>
Resizes the object by the factor <em class="parameter"><code>scale</code></em>.</p>
<p>
......@@ -283,7 +283,7 @@ Resizes the object by the factor <em class="parameter"><code>scale</code></em>.<
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_object_transform (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DMatrix *matrix);</pre>
<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
<p>
Multiplies all vertices of the object with the transformation matrix.</p>
<p>
......@@ -316,7 +316,7 @@ Multiplies all vertices of the object with the transformation matrix.</p>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> g3d_object_transform_normals (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
G3DMatrix *matrix);</pre>
<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
<p>
Multiplies all normals of the object with the transformation matrix.</p>
<p>
......
This diff is collapsed.
This diff is collapsed.
......@@ -56,10 +56,10 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int32-le" title="g3d_read_int32_le ()">g3d_read_int32_le</a> (FILE *f);
G3DFloat <a class="link" href="libg3d-read.html#g3d-read-float-be" title="g3d_read_float_be ()">g3d_read_float_be</a> (FILE *f);
G3DFloat <a class="link" href="libg3d-read.html#g3d-read-float-le" title="g3d_read_float_le ()">g3d_read_float_le</a> (FILE *f);
G3DDouble <a class="link" href="libg3d-read.html#g3d-read-double-be" title="g3d_read_double_be ()">g3d_read_double_be</a> (FILE *f);
G3DDouble <a class="link" href="libg3d-read.html#g3d-read-double-le" title="g3d_read_double_le ()">g3d_read_double_le</a> (FILE *f);
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-read.html#g3d-read-float-be" title="g3d_read_float_be ()">g3d_read_float_be</a> (FILE *f);
<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-read.html#g3d-read-float-le" title="g3d_read_float_le ()">g3d_read_float_le</a> (FILE *f);
<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-read.html#g3d-read-double-be" title="g3d_read_double_be ()">g3d_read_double_be</a> (FILE *f);
<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-read.html#g3d-read-double-le" title="g3d_read_double_le ()">g3d_read_double_le</a> (FILE *f);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-cstr" title="g3d_read_cstr ()">g3d_read_cstr</a> (FILE *f,
......@@ -219,7 +219,7 @@ Read a 4 byte little-endian signed integer from file.</p>
<hr>
<div class="refsect2" lang="en">
<a name="g3d-read-float-be"></a><h3>g3d_read_float_be ()</h3>
<pre class="programlisting">G3DFloat g3d_read_float_be (FILE *f);</pre>
<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_read_float_be (FILE *f);</pre>
<p>
Read a 4 byte big-endian floating point number from file.</p>
<p>
......@@ -244,7 +244,7 @@ Read a 4 byte big-endian floating point number from file.</p>
<hr>
<div class="refsect2" lang="en">
<a name="g3d-read-float-le"></a><h3>g3d_read_float_le ()</h3>
<pre class="programlisting">G3DFloat g3d_read_float_le (FILE *f);</pre>
<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_read_float_le (FILE *f);</pre>
<p>
Read a 4 byte little-endian floating point number from file.</p>
<p>
......@@ -269,7 +269,7 @@ Read a 4 byte little-endian floating point number from file.</p>
<hr>
<div class="refsect2" lang="en">
<a name="g3d-read-double-be"></a><h3>g3d_read_double_be ()</h3>
<pre class="programlisting">G3DDouble g3d_read_double_be (FILE *f);</pre>
<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_read_double_be (FILE *f);</pre>
<p>
Read a 8 byte big-endian double-precision floating point number from file.</p>
<p>
......@@ -294,7 +294,7 @@ Read a 8 byte big-endian double-precision floating point number from file.</p>
<hr>
<div class="refsect2" lang="en">
<a name="g3d-read-double-le"></a><h3>g3d_read_double_le ()</h3>
<pre class="programlisting">G3DDouble g3d_read_double_le (FILE *f);</pre>
<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_read_double_le (FILE *f);</pre>
<p>
Read a 8 byte little-endian double-precision floating point number from
file.</p>
......
This diff is collapsed.
......@@ -215,12 +215,12 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>tex_scale_u</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>tex_scale_u</code></em>;</span></p></td>
<td> factor scaling texture width, should be 1.0 for most cases
</td>
</tr>
<tr>
<td><p><span class="term">G3DFloat <em class="structfield"><code>tex_scale_v</code></em>;</span></p></td>
<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>tex_scale_v</code></em>;</span></p></td>
<td> factor scaling texture height, should be 1.0 for most cases
</td>
</tr>
......
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">