Primitive_Functions - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
This article is an overview of primitive and model related functions.
These functions exist for drawing simply and quick primitives.
- d3d_primitive_begin
- d3d_primitive_begin_texture
- d3d_primitive_end
- d3d_index
- d3d_vertex
- d3d_vertex_color
- d3d_vertex_normal
- d3d_vertex_normal_color
- d3d_vertex_normal_texture
- d3d_vertex_normal_texture_color
- d3d_vertex_texture
- d3d_vertex_texture_color
These functions exist for creating and loading models, these are not the same as the primitive functions, in that you create the model once and then simply draw the model, so you don't have to specify the vertices each time you draw.
- d3d_model_create
- d3d_model_destroy
- d3d_model_clear
- d3d_model_copy
- d3d_model_duplicate
- d3d_model_merge
- d3d_model_draw
- d3d_model_load
- d3d_model_save
- d3d_model_primitive_begin
- d3d_model_primitive_end
- d3d_model_open
- d3d_model_close
- d3d_model_index
- d3d_model_vertex
- d3d_model_vertex_color
- d3d_model_vertex_normal
- d3d_model_vertex_normal_color
- d3d_model_vertex_normal_texture
- d3d_model_vertex_normal_texture color
- d3d_model_vertex_texture
- d3d_model_vertex_texture_color
These functions exist for drawing a basic shape in the draw event.
- d3d_draw_floor
- d3d_draw_wall
- d3d_draw_block
- d3d_draw_cone
- d3d_draw_cylinder
- d3d_draw_ellipsoid
- d3d_draw_icosahedron
- d3d_draw_torus
These functions are for adding a basic shape onto an existing model, they are generally quicker because many of them can be batched into few draw calls.