source: trunk/src/video.h @ 1199

Last change on this file since 1199 was 1199, checked in by sam, 8 years ago

video: allow to set the default clear color.

  • Property svn:keywords set to Id
File size: 967 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Video interface
13// -------------------
14// Helper GL functions to set up the scene.
15//
16
17#if !defined __LOL_VIDEO_H__
18#define __LOL_VIDEO_H__
19
20#include <stdint.h>
21
22namespace lol
23{
24
25class Video
26{
27public:
28    static void Setup(ivec2 size);
29    static void Destroy();
30    static void SetFov(float theta);
31    static void SetDepth(bool set);
32    static void SetClearColor(vec4 color);
33    static void Clear();
34    static void Capture(uint32_t *buffer);
35    static ivec2 GetSize();
36    static mat4 const & GetProjMatrix();
37    static mat4 const & GetViewMatrix();
38};
39
40} /* namespace lol */
41
42#endif // __LOL_VIDEO_H__
43
Note: See TracBrowser for help on using the repository browser.