|
| virtual bool | IsDeleteable (Light *item) |
| | Returns whether the given item is deletable (ie. not a default element or internal)
|
| |
| void | LoadMaterials (MaterialContainer *materials, TextureContainer *textures) |
| | Loads all materials of lights, if they have any.
|
| |
| void | Draw (Shader *shader, State *state, Material *defaultMat, const glm::mat4 &viewProj, bool drawMats=false) |
| | Draws all lights that are renderable.
|
| |
| void | Read (const std::string &scope, std::ifstream &file, bool clear) override |
| | Reads this container from the file.
|
| |
| void | Write (std::ofstream &file) override |
| | Writes this container to the file.
|
| |
| void | Clear () override |
| | Clears the container of all items, deleting them.
|
| |
| void | ClearData () |
| | Clears the data of the container without deleting it. Only use this if pointers to the data exist elsewhere.
|
| |
| unsigned int | WriteCount () override |
| | Returns the number of items that will be written from the container.
|
| |
| unsigned int | Count () |
| | Returns the number of elements in the container.
|
| |
| bool | Empty () |
| | Returns whether the container is empty or not.
|
| |
| virtual std::string | GetUniqueName (const std::string &name) |
| | Returns a unique name, incrementing the existing name until it is unique.
|
| |
| virtual bool | Select (const std::string &name) |
| | Selects the given item. Does nothing if the item is not part of the container.
|
| |
| virtual bool | Select (Light *item) |
| | Selects the given item. Does nothing if the item is not part of the container.
|
| |
| virtual void | Deselect () |
| | Deselects the currently selected item.
|
| |
| virtual const std::string | GetSelectedName () |
| | Returns the currently selected item.
|
| |
| virtual Light * | GetSelectedItem () |
| | Returns the currently selected item.
|
| |
| virtual Light * | Add (const std::string &name, Light *item, bool replace, bool select=false) |
| | Adds the given item to the container, or if it already exists, updates the item to the given one.
|
| |
| virtual bool | TryDelete (Light *item) |
| | Attempts to delete the given item. Does nothing if the item is not deleteable or is null.
|
| |
| virtual bool | Remove (const std::string &name) |
| | Removes the given item from the container.
|
| |
| virtual bool | Remove (Light *item) |
| | Removes the given item from the container.
|
| |
| virtual Light * | GetItem (const std::string &name) |
| | Returns the item with the given key, or nullptr if not found.
|
| |
| virtual const std::string | GetKey (Light *item) |
| | Returns the key of the item given, or an empty string if not found.
|
| |
| virtual bool | Contains (const std::string &name) |
| | Returns whether the container contains an item with the given name.
|
| |
| virtual bool | Rename (const std::string &name, const std::string &newName) |
| | Renames the given item to the new name, or the new name with appended numbers.
|
| |
| virtual const std::unordered_map< std::string, Light * > & | Data () |
| | Returns a reference to the data stored in the container.
|
| |
| | ~IContainer () |
| | Clears all of the container, deleting its elements.
|
| |