open_toontown_panda3d/panda/src/sgattrib/textureApplyAttribute.h

61 lines
1.6 KiB
C++

// Filename: textureApplyAttribute.h
// Created by: drose (23Mar00)
//
////////////////////////////////////////////////////////////////////
#ifndef TEXTUREAPPLYATTRIBUTE_H
#define TEXTUREAPPLYATTRIBUTE_H
#include <pandabase.h>
#include "textureApplyProperty.h"
#include <onAttribute.h>
////////////////////////////////////////////////////////////////////
// Class : TextureApplyAttribute
// Description : See TextureApplyTransition.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA TextureApplyAttribute : public OnAttribute {
public:
INLINE TextureApplyAttribute();
INLINE void set_mode(TextureApplyProperty::Mode mode);
INLINE TextureApplyProperty::Mode get_mode() const;
virtual TypeHandle get_handle() const;
virtual NodeAttribute *make_copy() const;
virtual NodeAttribute *make_initial() const;
virtual void issue(GraphicsStateGuardianBase *gsgbase);
protected:
virtual void set_value_from(const OnTransition *other);
virtual int compare_values(const OnAttribute *other) const;
virtual void output_value(ostream &out) const;
virtual void write_value(ostream &out, int indent_level) const;
TextureApplyProperty _value;
public:
virtual TypeHandle get_type() const {
return get_class_type();
}
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
static TypeHandle get_class_type() {
return _type_handle;
}
static void init_type() {
OnAttribute::init_type();
register_type(_type_handle, "TextureApplyAttribute",
OnAttribute::get_class_type());
}
private:
static TypeHandle _type_handle;
};
#include "textureApplyAttribute.I"
#endif