PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "texGenAttrib.h"
#include "texturePool.h"
#include "graphicsStateGuardianBase.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "dcast.h"
Go to the source code of this file.
Functions | |
CPT (RenderAttrib) TexGenAttrib | |
Constructs a TexGenAttrib that generates no stages at all. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file texGenAttrib.cxx.
CPT | ( | RenderAttrib | ) |
Constructs a TexGenAttrib that generates no stages at all.
Returns a new TexGenAttrib just like this one, with the indicated generation mode for the given stage.
Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.
Constructs a TexGenAttrib that generates just the indicated stage.
If this stage already exists, its mode is replaced. Returns a new TexGenAttrib just like this one, with the indicated generation mode for the given stage. If this stage already exists, its mode is replaced.
This variant also accepts constant_value, which is only meaningful if mode is M_constant. Returns a new TexGenAttrib just like this one, with the indicated stage removed. Returns true if no stages are defined in the TexGenAttrib, false if at least one is. Returns true if there is a mode associated with the indicated stage, or false otherwise (in which case get_transform(stage) will return M_off). Returns the generation mode associated with the named texture stage, or M_off if nothing is associated with the indicated stage. Returns true if the indicated TextureStage will have texture coordinates generated for it automatically (and thus there is no need to upload the texture coordinates encoded in the vertices). Returns the constant value associated with the named texture stage. This is only meaningful if the mode is M_constant. Intended to be overridden by derived TexGenAttrib types to return a unique number indicating whether this TexGenAttrib is equivalent to the other one.
This should return 0 if the two TexGenAttrib objects are equivalent, a number less than zero if this one should be sorted before the other one, and a number greater than zero otherwise.
This will only be called with two TexGenAttrib objects whose get_type() functions return the same. Intended to be overridden by derived RenderAttrib types to return a unique hash for these particular properties. RenderAttribs that compare the same with compare_to_impl(), above, should return the same hash; RenderAttribs that compare differently should return a different hash. Intended to be overridden by derived RenderAttrib types to specify how two consecutive RenderAttrib objects of the same type interact.
This should return the result of applying the other RenderAttrib to a node in the scene graph below this RenderAttrib, which was already applied. In most cases, the result is the same as the other RenderAttrib (that is, a subsequent RenderAttrib completely replaces the preceding one). On the other hand, some kinds of RenderAttrib (for instance, ColorTransformAttrib) might combine in meaningful ways. Intended to be overridden by derived RenderAttrib types to specify how two consecutive RenderAttrib objects of the same type interact.
See invert_compose() and compose_impl(). This method is to be called after the _stages map has been built up internally through some artificial means; it copies the appropriate settings to _no_texcoords and updates other internal cache values appropriately.
Definition at line 37 of file texGenAttrib.cxx.