X-Git-Url: https://git.jsancho.org/?p=c-irrlicht.git;a=blobdiff_plain;f=examples%2F03.CustomSceneNode.c;fp=examples%2F03.CustomSceneNode.c;h=e2715f64b315648069bacc3907bd69ebf8cc0fa1;hp=9d74614cd4bccf31a0ca79ad86660d9a60fe15d6;hb=7e6e206937c54b100b45b2732edf19a7cc4a3edb;hpb=75c3ceb26453f2b265c3eabdd7518d26abfeed1c diff --git a/examples/03.CustomSceneNode.c b/examples/03.CustomSceneNode.c index 9d74614..e2715f6 100644 --- a/examples/03.CustomSceneNode.c +++ b/examples/03.CustomSceneNode.c @@ -73,10 +73,10 @@ int main() irr_video_S3DVertex vertices[] = { // pos, normal, color, tcoords - { {0, 0, 10}, {1, 1, 0}, {255, 0, 255, 255}, {0, 1} }, - { {10, 0, -10}, {1, 0, 0}, {255, 255, 0, 255}, {1, 1} }, - { {0, 20, 0}, {0, 1, 1}, {255, 255, 255, 0}, {1, 0} }, - { {-10, 0, -10}, {0, 0, 1}, {255, 0, 255, 0}, {0, 0} } + { {0, 0, 10}, {1, 1, 0}, MAKE_COLOR(255, 0, 255, 255), {0, 1} }, + { {10, 0, -10}, {1, 0, 0}, MAKE_COLOR(255, 255, 0, 255), {1, 1} }, + { {0, 20, 0}, {0, 1, 1}, MAKE_COLOR(255, 255, 255, 0), {1, 0} }, + { {-10, 0, -10}, {0, 0, 1}, MAKE_COLOR(255, 0, 255, 0), {0, 0} } }; irr_video_SMaterial material = S_MATERIAL_DEFAULT; material.wireframe = false; @@ -136,7 +136,7 @@ int main() // loop int frames = 0; - irr_video_SColor bgcolor = {0, 100, 100, 100}; + irr_video_SColor bgcolor = MAKE_COLOR(0, 100, 100, 100); while (irr_run(device)) { irr_video_beginScene(driver, true, true, &bgcolor, NULL, NULL);