LCOV - code coverage report
Current view: top level - blClone/src - Display.cpp (source / functions) Hit Total Coverage
Test: report.info Lines: 47 47 100.0 %
Date: 2014-06-08 Functions: 17 17 100.0 %

          Line data    Source code
       1             : #include "Display.h"
       2             : 
       3             : Display* Display::instance_ = 0;
       4             : 
       5           3 : Display* Display::Instance() {
       6             : 
       7           3 :         if( instance_ == 0 ) {
       8           2 :                 instance_ = new Display();
       9             :         }
      10             : 
      11           3 :         return instance_;
      12             : }
      13             : 
      14           2 : void Display::resetInstance() {
      15           2 :         instance_ = 0;
      16           2 : }
      17             : 
      18           2 : void Display::destroy() {
      19             : 
      20           2 :         Display* instance = Display::Instance();
      21           2 :         instance->resetInstance();
      22           2 :         delete instance;
      23           2 : }
      24             : 
      25           2 : Display::Display() {
      26             :         // TODO : ctor
      27           2 : }
      28             : 
      29           2 : Display::~Display() {
      30           2 : }
      31             : 
      32        1000 : void Display::clear() {
      33             :         // TODO : clear screen.
      34        1000 : }
      35             : 
      36        5000 : void Display::setStencil() {
      37             :         // TODO : set stencil.
      38        5000 : }
      39             : 
      40        5000 : void Display::resetStencil() {
      41             :         // TODO : reset stencil.
      42        5000 : }
      43             : 
      44         180 : void Display::drawEdgeShadow( EdgeShadow* edge_shadow ) {
      45             :         // TODO : render shadow edge
      46         180 :         edge_shadow = edge_shadow;
      47         180 : }
      48             : 
      49        5000 : void Display::runShader( Light* light ) {
      50             :         // TODO : run shader program.
      51        5000 :         light = light;
      52        5000 : }
      53             : 
      54        1000 : void Display::drawBlocks( std::vector< Block* >& blocks ) {
      55             :         // TODO : render blocks.
      56        1000 :         blocks.clear();
      57        1000 : }
      58             : 
      59        1000 : void Display::refresh() {
      60             :         // TODO : refresh/update display
      61        1000 : }
      62             : 
      63           1 : void Display::open() {
      64             :         // TODO : open window, initiate display mode.
      65           1 : }
      66             : 
      67           1 : void Display::initShader() {
      68             :         // TODO : initialize shader program.
      69           1 : }
      70             : 
      71           1 : void Display::initialize() {
      72             :         // TODO : complete display initialization.
      73           1 : }
      74             : 
      75           1 : void Display::deleteShader() {
      76             :         // TODO : delete shader program.
      77           1 : }
      78             : 
      79        1001 : bool Display::quitRequest() { 
      80             :          // TODO return quit request.
      81             : 
      82             :         static int count=1000;
      83        1001 :         bool quit = false;
      84             : 
      85        1001 :         count--;
      86        1001 :         if (count < 0) {
      87           1 :                 quit = true;
      88             :         }
      89             : 
      90        1001 :         return quit;
      91             : }

Generated by: LCOV version 1.9