File: simple-background.cpp

package info (click to toggle)
wayfire 0.9.0-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,732 kB
  • sloc: cpp: 49,708; xml: 2,783; ansic: 699; makefile: 161
file content (13 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <wayfire/core.hpp>
#include "simple-background.hpp"

wf_cube_simple_background::wf_cube_simple_background()
{}

void wf_cube_simple_background::render_frame(const wf::render_target_t& fb,
    wf_cube_animation_attribs&)
{
    OpenGL::render_begin(fb);
    OpenGL::clear(background_color, GL_COLOR_BUFFER_BIT);
    OpenGL::render_end();
}