module GR3
Included Modules
Extended Modules
Defined in:
gr3.crgr3/libgr3.cr
Constant Summary
-
DRAWABLE_GKS =
2 -
DRAWABLE_OPENGL =
1 -
ERROR_CAMERA_NOT_INITIALIZED =
7 -
ERROR_CANNOT_OPEN_FILE =
9 -
ERROR_EXPORT =
10 -
ERROR_INIT_FAILED =
3 -
ERROR_INVALID_ATTRIBUTE =
2 -
ERROR_INVALID_VALUE =
1 -
ERROR_MESSAGES =
["none", "invalid value", "invalid attribute", "init failed", "OpenGL error", "out of memory", "not initialized", "camera not initialized", "unknown file extension", "cannot open file", "export failed"] -
ERROR_MUTEX =
Mutex.new -
ERROR_NONE =
0 -
ERROR_NOT_INITIALIZED =
6 -
ERROR_OPENGL_ERR =
4 -
ERROR_OUT_OF_MEM =
5 -
ERROR_UNKNOWN_FILE_EXTENSION =
8 -
IA_END_OF_LIST =
0 -
IA_FRAMEBUFFER_HEIGHT =
2 -
IA_FRAMEBUFFER_WIDTH =
1 -
IA_NUM_THREADS =
3 -
QUALITY_OPENGL_16X_SSAA =
16 -
QUALITY_OPENGL_2X_SSAA =
2 -
QUALITY_OPENGL_4X_SSAA =
4 -
QUALITY_OPENGL_8X_SSAA =
8 -
QUALITY_OPENGL_NO_SSAA =
0 -
QUALITY_POVRAY_16X_SSAA =
17 -
QUALITY_POVRAY_2X_SSAA =
3 -
QUALITY_POVRAY_4X_SSAA =
5 -
QUALITY_POVRAY_8X_SSAA =
9 -
QUALITY_POVRAY_NO_SSAA =
1 -
SURFACE_DEFAULT =
0 -
SURFACE_FLAT =
2 -
SURFACE_GRCOLOR =
8 -
SURFACE_GRTRANSFORM =
4 -
SURFACE_GRZSHADED =
16 -
SURFACE_NORMALS =
1
Instance Method Summary
- #cameralookat(camera_x, camera_y, camera_z, center_x, center_y, center_z, up_x, up_y, up_z)
- #check_error!(clear = 1)
- #clear
- #createheightmapmesh(heightmap, num_columns, num_rows)
- #createindexedmesh(number_of_vertices, vertices, normals, colors, number_of_indices, indices)
- #createindexedmesh_nocopy(number_of_vertices, vertices, normals, colors, number_of_indices, indices)
- #createisosurfacemesh(data, isolevel, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #createmesh(n, vertices, normals, colors)
- #createmesh_nocopy(n, vertices, normals, colors)
- #createsurface3dmesh(ncols, nrows, px, py, pz)
- #createsurfacemesh(nx, ny, px, py, pz, option)
- #createtubemesh(n, points, colors, radii, num_steps, num_segments)
- #createxslicemesh(data, ix, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #createyslicemesh(data, iy, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #createzslicemesh(data, iz, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #deletemesh(mesh)
- #drawconemesh(n, positions, directions, colors, radii, lengths)
- #drawcubemesh(n, positions, directions, ups, colors, scales)
- #drawcylindermesh(n, positions, directions, colors, radii, lengths)
- #drawheightmap(heightmap, num_columns, num_rows, positions, scales)
- #drawimage(xmin, xmax, ymin, ymax, width, height, drawable_type)
- #drawmesh(mesh, n, positions, directions, ups, colors, scales)
- #drawmesh_grlike(mesh, n, positions, directions, ups, colors, scales)
- #drawmolecule(n, positions, colors, radii, bond_radius, bond_color, bond_delta)
- #drawspheremesh(n, positions, colors, radii)
- #drawspins(n, positions, directions, colors, cone_radius, cylinder_radius, cone_height, cylinder_height)
- #drawsurface(mesh)
- #drawtrianglesurface(n, triangles)
- #drawtubemesh(n, points, colors, radii, num_steps, num_segments)
- #drawxslicemesh(data, ix, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #drawyslicemesh(data, iy, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #drawzslicemesh(data, iz, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
- #export(filename, width, height)
- #free(pointer)
- #getalphamode(mode)
- #getcameraprojectionparameters(vfov, znear, zfar)
- #getclipping(xmin, xmax, ymin, ymax, zmin, zmax)
- #geterror(clear, line, file)
- #geterrorstring(error)
- #getimage(width, height, use_alpha, pixels)
- #getimage(width, height, use_alpha = true)
- #getlightparameters(ambient, diffuse, specular, specular_power)
- #getlightsources(max_num_lights, positions, colors)
- #getprojectiontype
- #getrenderpathstring
- #getsurfaceoption
- #getviewmatrix(m)
- #init(attrib_list = nil)
- #isosurface(nx, ny, nz, data, isovalue, color, strides)
- #save(filename, width, height)
- #selectid(x, y, width, height, selection_id)
- #setalphamode(mode)
- #setbackgroundcolor(red, green, blue, alpha)
- #setcameraprojectionparameters(vertical_field_of_view, znear, zfar)
- #setclipping(xmin, xmax, ymin, ymax, zmin, zmax)
- #setdefaultlightparameters
- #setlightdirection(x, y, z)
- #setlightparameters(ambient, diffuse, specular, specular_power)
- #setlightsources(num_lights, positions, colors)
- #setlogcallback(log_func)
- #setobjectid(id)
- #setorthographicprojection(left, right, bottom, top, znear, zfar)
- #setprojectiontype(type)
- #setquality(quality)
- #setsurfaceoption(option)
- #setviewmatrix(m)
- #surface(nx, ny, px, py, pz, option)
- #terminate
- #triangulate(data, isolevel, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z, triangles_p)
- #triangulateindexed(data, isolevel, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z, num_vertices, vertices, normals, num_indices, indices)
- #usecurrentframebuffer
- #useframebuffer(framebuffer)
- #volume(nx, ny, nz, data, algorithm, dmin_ptr, dmax_ptr)
- #volume_2pass(nx, ny, nz, data, algorithm, dmin_ptr, dmax_ptr, context)
- #with_error_check(&)
Instance methods inherited from module GRCommon::Utils
to_cchar(s)
to_cchar
Instance Method Detail
def cameralookat(camera_x, camera_y, camera_z, center_x, center_y, center_z, up_x, up_y, up_z)
#
def createindexedmesh(number_of_vertices, vertices, normals, colors, number_of_indices, indices)
#
def createindexedmesh_nocopy(number_of_vertices, vertices, normals, colors, number_of_indices, indices)
#
def createisosurfacemesh(data, isolevel, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def createxslicemesh(data, ix, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def createyslicemesh(data, iy, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def createzslicemesh(data, iz, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def drawspins(n, positions, directions, colors, cone_radius, cylinder_radius, cone_height, cylinder_height)
#
def drawxslicemesh(data, ix, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def drawyslicemesh(data, iy, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def drawzslicemesh(data, iz, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z)
#
def triangulate(data, isolevel, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z, triangles_p)
#
def triangulateindexed(data, isolevel, dim_x, dim_y, dim_z, stride_x, stride_y, stride_z, step_x, step_y, step_z, offset_x, offset_y, offset_z, num_vertices, vertices, normals, num_indices, indices)
#