1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = gtkglext-gdkglshapes.html
27  * outPack = glgdk
28  * outFile = GLDraw
29  * strct   = 
30  * realStrct=
31  * ctorStrct=
32  * clss    = GLDraw
33  * interf  = 
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gdk_gl_draw_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * structWrap:
47  * module aliases:
48  * local aliases:
49  * overrides:
50  */
51 
52 module glgdk.GLDraw;
53 
54 public  import gtkglc.glgdktypes;
55 
56 private import gtkglc.glgdk;
57 private import glib.ConstructionException;
58 private import gobject.ObjectG;
59 
60 
61 
62 
63 
64 
65 /**
66  * Description
67  */
68 public class GLDraw
69 {
70 	
71 	/**
72 	 */
73 	
74 	/**
75 	 * Renders a cube.
76 	 * The cube is centered at the modeling coordinates origin with sides of
77 	 * length size.
78 	 * Params:
79 	 * solid = TRUE if the cube should be solid.
80 	 * size = length of cube sides.
81 	 */
82 	public static void cube(int solid, double size)
83 	{
84 		// void gdk_gl_draw_cube (gboolean solid,  double size);
85 		gdk_gl_draw_cube(solid, size);
86 	}
87 	
88 	/**
89 	 * Renders a sphere centered at the modeling coordinates origin of
90 	 * the specified radius. The sphere is subdivided around the Z axis into
91 	 * slices and along the Z axis into stacks.
92 	 * Params:
93 	 * solid = TRUE if the sphere should be solid.
94 	 * radius = the radius of the sphere.
95 	 * slices = the number of subdivisions around the Z axis (similar to lines of
96 	 *  longitude).
97 	 * stacks = the number of subdivisions along the Z axis (similar to lines of
98 	 *  latitude).
99 	 */
100 	public static void sphere(int solid, double radius, int slices, int stacks)
101 	{
102 		// void gdk_gl_draw_sphere (gboolean solid,  double radius,  int slices,  int stacks);
103 		gdk_gl_draw_sphere(solid, radius, slices, stacks);
104 	}
105 	
106 	/**
107 	 * Renders a cone oriented along the Z axis.
108 	 * The base of the cone is placed at Z = 0, and the top at Z = height.
109 	 * The cone is subdivided around the Z axis into slices, and along
110 	 * the Z axis into stacks.
111 	 * Params:
112 	 * solid = TRUE if the cone should be solid.
113 	 * base = the radius of the base of the cone.
114 	 * height = the height of the cone.
115 	 * slices = the number of subdivisions around the Z axis.
116 	 * stacks = the number of subdivisions along the Z axis.
117 	 */
118 	public static void cone(int solid, double base, double height, int slices, int stacks)
119 	{
120 		// void gdk_gl_draw_cone (gboolean solid,  double base,  double height,  int slices,  int stacks);
121 		gdk_gl_draw_cone(solid, base, height, slices, stacks);
122 	}
123 	
124 	/**
125 	 * Renders a torus (doughnut) centered at the modeling coordinates
126 	 * origin whose axis is aligned with the Z axis.
127 	 * Params:
128 	 * solid = TRUE if the torus should be solid.
129 	 * innerRadius = inner radius of the torus.
130 	 * outerRadius = outer radius of the torus.
131 	 * nsides = number of sides for each radial section.
132 	 * rings = number of radial divisions for the torus.
133 	 */
134 	public static void torus(int solid, double innerRadius, double outerRadius, int nsides, int rings)
135 	{
136 		// void gdk_gl_draw_torus (gboolean solid,  double inner_radius,  double outer_radius,  int nsides,  int rings);
137 		gdk_gl_draw_torus(solid, innerRadius, outerRadius, nsides, rings);
138 	}
139 	
140 	/**
141 	 * Renders a tetrahedron centered at the modeling coordinates
142 	 * origin with a radius of the square root of 3.
143 	 * Params:
144 	 * solid = TRUE if the tetrahedron should be solid.
145 	 */
146 	public static void tetrahedron(int solid)
147 	{
148 		// void gdk_gl_draw_tetrahedron (gboolean solid);
149 		gdk_gl_draw_tetrahedron(solid);
150 	}
151 	
152 	/**
153 	 * Renders a octahedron centered at the modeling coordinates
154 	 * origin with a radius of 1.0.
155 	 * Params:
156 	 * solid = TRUE if the octahedron should be solid.
157 	 */
158 	public static void octahedron(int solid)
159 	{
160 		// void gdk_gl_draw_octahedron (gboolean solid);
161 		gdk_gl_draw_octahedron(solid);
162 	}
163 	
164 	/**
165 	 * Renders a dodecahedron centered at the modeling coordinates
166 	 * origin with a radius of the square root of 3.
167 	 * Params:
168 	 * solid = TRUE if the dodecahedron should be solid.
169 	 */
170 	public static void dodecahedron(int solid)
171 	{
172 		// void gdk_gl_draw_dodecahedron (gboolean solid);
173 		gdk_gl_draw_dodecahedron(solid);
174 	}
175 	
176 	/**
177 	 * Renders a icosahedron.
178 	 * The icosahedron is centered at the modeling coordinates origin
179 	 * and has a radius of 1.0.
180 	 * Params:
181 	 * solid = TRUE if the icosahedron should be solid.
182 	 */
183 	public static void icosahedron(int solid)
184 	{
185 		// void gdk_gl_draw_icosahedron (gboolean solid);
186 		gdk_gl_draw_icosahedron(solid);
187 	}
188 	
189 	/**
190 	 * Renders a teapot.
191 	 * Both surface normals and texture coordinates for the teapot are generated.
192 	 * The teapot is generated with OpenGL evaluators.
193 	 * Params:
194 	 * solid = TRUE if the teapot should be solid.
195 	 * scale = relative size of the teapot.
196 	 * <<Font Rendering
197 	 * Tokens>>
198 	 */
199 	public static void teapot(int solid, double scale)
200 	{
201 		// void gdk_gl_draw_teapot (gboolean solid,  double scale);
202 		gdk_gl_draw_teapot(solid, scale);
203 	}
204 }