|
| object_3d * | draw_billboard_quad (void) |
| | create a camera-aligned billboard quad proxy for perfect impostors.
|
| float | get_sphere_radius (int style, int sp, int ac, int sel) |
| | get an atom sphere radius
|
| ColRGBA | get_atom_color (int i, int j, double al, int picked, gboolean to_picked) |
| | get atom (or clone) color
|
| int | cylinder_vertices (int qual) |
| | return the number of OpenGL vertices to render a cylinder
|
| int | cylinder_indices (int qual) |
| | return the number of OpenGL indices to render a cylinder
|
| object_3d * | draw_cylinder (int quality, float ra, float rb) |
| | OpenGL 3D cylinder object rendering.
|
| int | cap_vertices (int qual) |
| | return the number of OpenGL vertices to render a cylinder cap
|
| int | cap_indices (int qual) |
| | return the number of OpenGL indices to render a cylinder cap
|
| object_3d * | draw_cylinder_cap (int quality, float rad, gboolean picked) |
| | OpenGL 3D cylinder cap object rendering.
|
| vec4_t | rotate_bond (vec3_t a, vec3_t b) |
| | rotate a bond based on the proper orientation
|
| float | get_bond_radius (int sty, int ac, int at, int bt, int sel) |
| | get bond (clone bond) radius
|
| void | setup_line_vertice (float *vertices, vec3_t pos, ColRGBA col, float alpha) |
| | fill the OpenGL data buffer for a line bond (or clone bond) to render
|
| void | setup_cylinder_vertice (float *vertices, vec3_t pos_a, vec3_t pos_b, ColRGBA col, float rad, float alpha, float delta, float r_sph_a, float r_sph_b) |
| | fill the OpenGL data buffer for a cylinder bond (or clone bond) to render
|
| void | setup_cap_vertice (float *vertices, vec3_t pos_a, vec3_t pos_b, ColRGBA col, float rad, float alpha, gboolean sel) |
| | fill the OpenGL data buffer for a cylinder cap bond (or clone bond) to render
|
| void | setup_this_bond (int sty, gboolean to_pick, gboolean picked, int cap, int bi, int pi, atom *at, atom *bt, float al, float *vertices) |
| | prepare the OpenGL rendering data of a bond / clone bond
|
| void | prepare_bond (int sty, gboolean to_pick, gboolean picked, int cap, int bi, int pi, int bid, atom *at, atom *bt, float *vertices) |
| | prepare a bond OpenGL rendering
|
| int | find_bond_vertices (gboolean to_pick, int sty, int sa, int sb, int bi, int cap) |
| | find bond(s) and clone bond(s) to render
|
| void | setup_all_cylinder_vertices (int style, gboolean to_pick, int cap, int bi, float *vertices) |
| | prepare cylinder bond(s) and clone bond(s) to render
|
| void | setup_line_vertices (int style, int cap, int bi, int sa, int sb, float *vertices) |
| | prepare line bond(s) and clone bond(s) to render
|
| int | create_bond_lists (gboolean to_pick) |
| | prepare bond(s) and clone bond(s) OpenGL rendering
|
Functions to prepare the OpenGL rendering of bond(s) and clone bond(s).
- Author
- Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r
Definition in file d_bonds.c.
create a camera-aligned billboard quad proxy for perfect impostors.
The quad has 4 vertices at unit corners (±1, ±1, 0). Each vertex shader for perfect impostors uses the sign of vert.x / vert.y to select the corresponding edge of the tight axis-aligned bounding box in view space.
Draw primitive: GL_TRIANGLE_STRIP with indices [0,1,2,3]. tri 0 → vertices 0,1,2 tri 1 → vertices 1,2,3
Definition at line 273 of file d_atoms.c.