这篇教程C++ win函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中win函数的典型用法代码示例。如果您正苦于以下问题:C++ win函数的具体用法?C++ win怎么用?C++ win使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了win函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: mainint main() { sf::Window win(sf::VideoMode(512, 512), "Lol"); glewInit(); Shader f("Frag", Shader::Fragment); Shader v("Vert", Shader::Vertex); Program p; p.Attach(f); p.Attach(v); for (;;) { sf::Event e; while (win.pollEvent(e)) switch (e.type) { case sf::Event::Closed: exit(0); break; } win.display(); } //Game::Run(); return EXIT_SUCCESS;}
开发者ID:retep998,项目名称:Infinity,代码行数:20,
示例2: display_splash_screenvoid display_splash_screen(){ // Create a window Simple_window win(Point(100,100),450,450,"AggieSnap!"); Text title(Point(140,25),"Welcome to Aggie Snap!"); Text description_1(Point(18,370),"Welcome to AggieSnap! This program allows you to get pictures"); Text description_2(Point(33,400),"from a file index or URL, tag the pictures, save the pictures,"); Text description_3(Point(53,430),"and browse or search through these saved pictures."); Image splash(Point(75,45),"splash_screen.gif"); win.attach(splash); win.attach(title); win.attach(description_1); win.attach(description_2); win.attach(description_3); win.wait_for_button();};
开发者ID:claywd1210,项目名称:classes,代码行数:20,
示例3: winvoid GameWidget::openBlock(){ blockSum--; // qDebug()<<blockSum; if(blockSum==MineCount) { for(int i=0;i<Max;i++) { for(int j=0;j<Max;j++) { if(map[i][j]->getStatus()==Block::Default) { map[i][j]->setFlag(); } map[i][j]->locked(); } } emit win(); }}
开发者ID:eugenelyj,项目名称:gxinMine,代码行数:20,
示例4: mainint main(int argc, char *argv[]) { // Lua test sel::State luaState{true}; luaState["message"] = "Hello world!"; std::string message = luaState["message"]; std::cout << "Message: " << message << std::endl; // SDL test SDL2pp::SDL sdl(SDL_INIT_VIDEO); SDL2pp::SDLTTF ttf; SDL2pp::SDLImage img; SDL2pp::Window win("Hello world", 0, 0, 800, 600, SDL_WINDOWPOS_UNDEFINED); for (int i = 0; i < 10; ++i) { luaState["number"] = i; std::cout << "Number: " << int(luaState["number"]) << std::endl; SDL_Delay(1000); } luaState("print(/"Goodbye from Lua!/")");}
开发者ID:Hertin,项目名称:Novelua,代码行数:20,
|