Просмотр исходного кода

doc: remove unneeded kinc_g4 calls in window example

main
Sam Hocevar 2 лет назад
Родитель
Сommit
5afad2bf96
1 измененных файлов: 1 добавлений и 4 удалений
  1. +1
    -4
      doc/examples/window.cpp

+ 1
- 4
doc/examples/window.cpp Просмотреть файл

@@ -14,9 +14,9 @@
# include "config.h"
#endif

#include <cmath>
#include <kinc/graphics4/graphics.h>
#include <lol/engine/sys>
#include <cmath>

int main(int argc, char **argv)
{
@@ -28,10 +28,7 @@ int main(int argc, char **argv)
// Update routine: clear the background color
lol::sys::add_callback([&frame]() {
uint32_t alpha = uint32_t(127.0f + 127.0f * std::cos(++frame * 0.1f));
kinc_g4_begin(0);
kinc_g4_clear(KINC_G4_CLEAR_COLOR, 0x800000 | alpha * 0x0101, 0.f, 0);
kinc_g4_end(0);
kinc_g4_swap_buffers();
return true;
});



Загрузка…
Отмена
Сохранить