mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
76 lines
2.6 KiB
C++
76 lines
2.6 KiB
C++
// Filename: cullBin.cxx
|
|
// Created by: drose (28Feb02)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "cullBin.h"
|
|
|
|
|
|
TypeHandle CullBin::_type_handle;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CullBin::make_next
|
|
// Access: Public, Virtual
|
|
// Description: Returns a newly-allocated CullBin object that
|
|
// contains a copy of just the subset of the data from
|
|
// this CullBin object that is worth keeping around
|
|
// for next frame.
|
|
//
|
|
// If a particular CullBin object has no data worth
|
|
// preserving till next frame, it is acceptable to
|
|
// return NULL (which is the default behavior of this
|
|
// method).
|
|
////////////////////////////////////////////////////////////////////
|
|
PT(CullBin) CullBin::
|
|
make_next() const {
|
|
return (CullBin *)NULL;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CullBin::add_geom
|
|
// Access: Public, Virtual
|
|
// Description: Adds the geom, along with its associated state, to
|
|
// the bin for rendering.
|
|
////////////////////////////////////////////////////////////////////
|
|
void CullBin::
|
|
add_geom(Geom *geom, const TransformState *transform,
|
|
const RenderState *state) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CullBin::finish_cull
|
|
// Access: Public
|
|
// Description: Called after all the geoms have been added, this
|
|
// indicates that the cull process is finished for this
|
|
// frame and gives the bins a chance to do any
|
|
// post-processing (like sorting) before moving on to
|
|
// draw.
|
|
////////////////////////////////////////////////////////////////////
|
|
void CullBin::
|
|
finish_cull() {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CullBin::draw
|
|
// Access: Public
|
|
// Description: Draws all the geoms in the bin, in the appropriate
|
|
// order.
|
|
////////////////////////////////////////////////////////////////////
|
|
void CullBin::
|
|
draw() {
|
|
}
|
|
|