Commit f32f0de1 authored by Ken Martin's avatar Ken Martin

moved property over and started gutting it

parent f4f93e74
......@@ -21,6 +21,7 @@ set(Module_SRCS
vtkOpenGL2Actor.cxx
vtkOpenGL2Camera.cxx
vtkOpenGL2Light.cxx
vtkOpenGL2Property.cxx
vtkVBOPolyDataMapper.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
......@@ -81,6 +82,7 @@ if(VTK_REPLACE_OPENGL_OVERRIDES)
Actor
Camera
Light
Property
)
endif()
vtk_add_override(vtkPolyDataMapper vtkVBOPolyDataMapper)
......
This diff is collapsed.
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLProperty.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkOpenGLProperty - OpenGL property
// .SECTION Description
// vtkOpenGLProperty is a concrete implementation of the abstract class
// vtkProperty. vtkOpenGLProperty interfaces to the OpenGL rendering library.
#ifndef __vtkOpenGL2Property_h
#define __vtkOpenGL2Property_h
#include "vtkRenderingOpenGL2Module.h" // For export macro
#include "vtkProperty.h"
class vtkOpenGLRenderer;
class vtkOpenGLRenderWindow;
class VTKRENDERINGOPENGL2_EXPORT vtkOpenGL2Property : public vtkProperty
{
public:
static vtkOpenGL2Property *New();
vtkTypeMacro(vtkOpenGL2Property, vtkProperty);
virtual void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Implement base class method.
void Render(vtkActor *a, vtkRenderer *ren);
// Description:
// Implement base class method.
void BackfaceRender(vtkActor *a, vtkRenderer *ren);
//BTX
// Description:
// This method is called after the actor has been rendered.
// Don't call this directly. This method cleans up
// any shaders allocated.
virtual void PostRender(vtkActor *a,
vtkRenderer *r);
// Description:
// Release any graphics resources that are being consumed by this
// property. The parameter window could be used to determine which graphic
// resources to release.
virtual void ReleaseGraphicsResources(vtkWindow *win);
protected:
vtkOpenGL2Property();
~vtkOpenGL2Property();
// Description:
// Method called in vtkOpenGLProperty::Render() to render textures.
// Last argument is the value returned from RenderShaders() call.
bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
// Description:
// Load OpenGL extensions for multi texturing.
void LoadMultiTexturingExtensions(vtkRenderer* ren);
private:
vtkOpenGL2Property(const vtkOpenGL2Property&); // Not implemented.
void operator=(const vtkOpenGL2Property&); // Not implemented.
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment