mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
resolve dependency issue
This commit is contained in:
parent
7dcdd8899e
commit
e75c8695dd
@ -651,22 +651,3 @@ CompositionCycleDescEntry(const RenderState *obj,
|
|||||||
_inverted(inverted)
|
_inverted(inverted)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: RenderState::get_generated_shader
|
|
||||||
// Access: Public
|
|
||||||
// Description: Generate a ShaderAttrib for this RenderState. This
|
|
||||||
// generated ShaderAttrib can be thought of as a
|
|
||||||
// replacement for the regular ShaderAttrib that is a
|
|
||||||
// standard part of the RenderState.
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
INLINE const ShaderAttrib *RenderState::
|
|
||||||
get_generated_shader() const {
|
|
||||||
if (_generated_shader != (RenderAttrib*)NULL) {
|
|
||||||
return DCAST(ShaderAttrib, _generated_shader);
|
|
||||||
}
|
|
||||||
((RenderState*)this)->_generated_shader =
|
|
||||||
ShaderGenerator::synthesize_shader(this);
|
|
||||||
return DCAST(ShaderAttrib, _generated_shader);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -1126,6 +1126,28 @@ get_geom_rendering(int geom_rendering) const {
|
|||||||
return geom_rendering;
|
return geom_rendering;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: RenderState::get_generated_shader
|
||||||
|
// Access: Public
|
||||||
|
// Description: Generate a ShaderAttrib for this RenderState. This
|
||||||
|
// generated ShaderAttrib can be thought of as a
|
||||||
|
// replacement for the regular ShaderAttrib that is a
|
||||||
|
// standard part of the RenderState.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
const ShaderAttrib *RenderState::
|
||||||
|
get_generated_shader() const {
|
||||||
|
// This method cannot be declared inline, because of the circular
|
||||||
|
// dependency on shaderAttrib.h.
|
||||||
|
|
||||||
|
if (_generated_shader != (RenderAttrib*)NULL) {
|
||||||
|
return DCAST(ShaderAttrib, _generated_shader);
|
||||||
|
}
|
||||||
|
((RenderState*)this)->_generated_shader =
|
||||||
|
ShaderGenerator::synthesize_shader(this);
|
||||||
|
return DCAST(ShaderAttrib, _generated_shader);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: RenderState::store_into_slots
|
// Function: RenderState::store_into_slots
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -155,7 +155,7 @@ PUBLISHED:
|
|||||||
|
|
||||||
int get_geom_rendering(int geom_rendering) const;
|
int get_geom_rendering(int geom_rendering) const;
|
||||||
|
|
||||||
INLINE const ShaderAttrib *get_generated_shader() const;
|
const ShaderAttrib *get_generated_shader() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void store_into_slots(AttribSlots *slots) const;
|
void store_into_slots(AttribSlots *slots) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user