How to perform a simple graphics

Display graphics

  1. To acquire render
    GRRender* render;
    SGScene->GetRenderers().Find(render);
  2. Standard frame specification of graphics
    Fuction uses render->SetModelMatrix(Affinef); (The frame of the object where it rendered at the latest becomes a default if it doesn't specify it. )
  3. Graphic material information
    Samples is the following.
    GRMaterialData mat1(Vec4f(1, 0, 0, 1),Vec4f(1, 0, 0, 1),Vec4f(1, 0, 0, 1),Vec4f(1, 0, 0, 1), 0);
    		mat1.ambient = Vec4f(1, 1, 0, 1);
    		mat1.diffuse = Vec4f(1, 1, 0, 1);
    		mat1.specular = Vec4f(1, 1, 0, 1);
    		mat1.emissive = Vec4f(1, 1, 0, 1);
    		mat1.power = 0;
  4. The remains are the same like the below.