The Vish Visualization Shell 0.3
Vish
Classes | Public Member Functions | List of all members
Wizt::Shader Class Referenceabstract

Base class for OpenGL shaders. More...

#include <ocean/GLvish/Shader.hpp>

Inheritance diagram for Wizt::Shader:
MemCore::ReferenceBase< Shader > Wizt::ComputeShader Wizt::FragmentShader Wizt::GeometryShader Wizt::VertexShader

Classes

struct  Error
 Error class for Shader-related problems, for instance compilation errors. More...
 

Public Member Functions

bool compile (const std::string &source, const string &srcfilename, unsigned lineNo)
 Compile this program from some GSGL source code.
 
std::string getSource () const
 Get the source code as stored by OpenGL.
 
std::string InfoLog () const
 Get the info log associated with this shader.
 
- Public Member Functions inherited from MemCore::ReferenceBase< Shader >
auto getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain.
 
bool isIdentical (const WeakPtr< Shader, Shader > &PossibleSelf) const noexcept
 Check if this object is identical to the one used by the given pointer.
 
void mkAutoDestructive ()
 Marks this object as being automatically destructed, e.g.
 
refcount_t refcount () const noexcept
 The strong reference count.
 
 ReferenceBase (Shader *that) noexcept
 Constructor, initializes reference counter to zero.
 
const auto & self () const
 Return weak pointer to the object self.
 
refcount_t wrefcount () const noexcept
 The weak reference count.
 

Additional Inherited Members

- Public Types inherited from MemCore::ReferenceBase< Shader >
using reference_domain_t = Shader
 The type of the base class.
 
using SelfPtr_t = WeakPtr< Shader, Shader >
 Type for a pointer to this object itself.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< Shader >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed.
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called).
 
void suicide ()
 Delete this.
 
virtual ~ReferenceBase ()
 Virtual destructor.
 

Detailed Description

Base class for OpenGL shaders.

Member Function Documentation

◆ compile()

bool Wizt::Shader::compile ( const std::string &  source,
const string &  srcfilename,
unsigned  lineNo 
)

Compile this program from some GSGL source code.

It may be used well in conjunction with MemCore::FileRead();

References compile().

Referenced by compile().

◆ getSource()

string Wizt::Shader::getSource ( ) const

Get the source code as stored by OpenGL.

http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderSource.xml