Loading...
Searching...
No Matches
glDisplayList.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: glDisplayList.h,v 1.8.16.1 2007/03/25 21:26:14 oliver Exp $
#ifndef BALL_VIEW_RENDERING_GLDISPLAYLIST_H
#define BALL_VIEW_RENDERING_GLDISPLAYLIST_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
#include <QtOpenGL/qgl.h>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT GLDisplayList
{
public:
BALL_CREATE(GLDisplayList)
typedef unsigned long GLList;
static const GLList DISPLAYLIST_NOT_DEFINED;
class BALL_VIEW_EXPORT NestedDisplayList: public Exception::GeneralException
{
public:
NestedDisplayList(const char* file, int line) ;
};
class BALL_VIEW_EXPORT NoDisplayListAvailable: public Exception::GeneralException
{
public:
NoDisplayListAvailable(const char* file, int line);
};
class BALL_VIEW_EXPORT DisplayListRedeclaration: public Exception::GeneralException
{
public:
DisplayListRedeclaration(const char* file, int line);
};
GLDisplayList();
virtual ~GLDisplayList();
virtual void clear();
void startDefinition();
void endDefinition();
void draw();
void useCompileMode();
void useCompileAndExecuteMode();
bool isCompileMode() const;
bool isCompileAndExecuteMode() const;
virtual bool isValid() const
{ return GL_list_ != 0; }
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
private:
/* compile switch */
bool compile_;
/* display list */
GLList GL_list_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/RENDERING/glDisplayList.iC>
# endif
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_RENDERING_GLDISPLAYLIST_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Exception::GeneralException
Definition COMMON/exception.h:61
BALL::Exception::GeneralException::GeneralException
GeneralException()
Default constructor.
BALL::VIEW::GLDisplayList::DisplayListRedeclaration::DisplayListRedeclaration
DisplayListRedeclaration(const char *file, int line)
BALL::VIEW::GLDisplayList::NestedDisplayList::NestedDisplayList
NestedDisplayList(const char *file, int line)
BALL::VIEW::GLDisplayList::NoDisplayListAvailable::NoDisplayListAvailable
NoDisplayListAvailable(const char *file, int line)
BALL::VIEW::GLDisplayList::GLList
unsigned long GLList
Definition glDisplayList.h:45
BALL::VIEW::GLDisplayList::startDefinition
void startDefinition()
BALL::VIEW::GLDisplayList::isValid
virtual bool isValid() const
Definition glDisplayList.h:211
BALL::VIEW::GLDisplayList::draw
void draw()
BALL::VIEW::GLDisplayList::DISPLAYLIST_NOT_DEFINED
static const GLList DISPLAYLIST_NOT_DEFINED
Definition glDisplayList.h:56
BALL::VIEW::GLDisplayList::useCompileAndExecuteMode
void useCompileAndExecuteMode()
BALL::VIEW::GLDisplayList::endDefinition
void endDefinition()
BALL::VIEW::GLDisplayList::isCompileAndExecuteMode
bool isCompileAndExecuteMode() const
BALL::VIEW::GLDisplayList::isCompileMode
bool isCompileMode() const
BALL::VIEW::GLDisplayList::GLDisplayList
GLDisplayList()
BALL::VIEW::GLDisplayList::useCompileMode
void useCompileMode()
BALL::VIEW::GLDisplayList::clear
virtual void clear()
BALL::VIEW::GLDisplayList::~GLDisplayList
virtual ~GLDisplayList()
BALL::VIEW::GLDisplayList::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
common.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
BALL::Exception
Definition COMMON/exception.h:33
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114