14#ifndef FLTLIGHTSOURCEDEFINITION_H
15#define FLTLIGHTSOURCEDEFINITION_H
28class FltLightSourceDefinition :
public FltRecord {
30 FltLightSourceDefinition(FltHeader *header);
39 std::string _light_name;
43 LightType _light_type;
44 PN_stdfloat _exponential_dropoff;
45 PN_stdfloat _cutoff_angle;
52 PN_stdfloat _constant_coefficient;
53 PN_stdfloat _linear_coefficient;
54 PN_stdfloat _quadratic_coefficient;
63 return get_class_type();
65 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 static void init_type() {
70 FltRecord::init_type();
72 FltRecord::get_class_type());
78 friend class FltHeader;
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...