Код: Выделить всё
#include
#include
#include
#include
#include
#include
#include
struct Vertex {
float x, y;
};
std::vector vertices;
int numSides = 3;
const float scaleFactor = 0.5f;
int bgColor[3] = {255, 255, 255};
GLUI *glui_window;
void menuFunction(int value) {
std::cout add_item(2, "Red");
bgColorList->add_item(3, "Green");
bgColorList->add_item(4, "Blue");
glui_window->set_main_gfx_window(glutGetWindow());
bgColorList->set_int_val(1);
glui_window->hide();
}
Изначально программа создает многоугольник, и этот код должен изменить цвет позади него.
Подробнее здесь: https://stackoverflow.com/questions/785 ... -selection
Мобильная версия