コード例 #1
0
void GLBeerPint::init(void)
{
    initShader();
    initVBO();
    
    initShaderNormal();
    initVBONormals();
}
コード例 #2
0
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();
}
コード例 #3
0
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();
}
コード例 #4
0
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();

}