void GLBeerPint::init(void) { initShader(); initVBO(); initShaderNormal(); initVBONormals(); }
GLSphereRed::GLSphereRed(float center_x, float center_y, float center_z, float radius, int rows, int segments ) { _center.x() = center_x; _center.y() = center_y; _center.z() = center_z; _radius = radius; _rows = rows; _segments = segments; _render_normal_vectors = false; _program_normals = -1; _program = -1; initShader(); initVBO(); initShaderNormal(); initVBONormals(); }
GLBeerPint::GLBeerPint(float center_x, float center_y, float center_z, float radius, float length, int rows, int segments ) { _center.x() = center_x; _center.y() = center_y; _center.z() = center_z; _radius = radius; _length = length; _rows = rows; _segments = segments; _render_normal_vectors = false; _program_normals = -1; _program = -1; initShader(); initVBO(); initShaderNormal(); initVBONormals(); }
GLSphereDirect::GLSphereDirect(float center_x, float center_y, float center_z, float radius, int rows, int segments, glm::vec3 matl_ambient_color, int lightSourceOption) { _center.x() = center_x; _center.y() = center_y; _center.z() = center_z; _radius = radius; _rows = rows; _segments = segments; _render_normal_vectors = false; _material._ambient_material = matl_ambient_color; _lightSourceOption = lightSourceOption; initShader(); initVBO(); initShaderNormal(); initVBONormals(); }