Files
kraken/kraken/KRSprite.h
Kearwood Kip Gilbert 5362bbd526 /s/KRAABB/AABB/g
Cleanup, new hash<> functions
2017-07-29 19:23:21 -07:00

41 lines
1.0 KiB
C++
Executable File

//
// KRSprite.h
// KREngine
//
// Created by Kearwood Gilbert on 12-04-05.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KRSPRITE_H
#define KRSPRITE_H
#include "KRResource.h"
#include "KRNode.h"
#include "KRTexture.h"
class KRSprite : public KRNode {
public:
KRSprite(KRScene &scene, std::string name);
virtual ~KRSprite();
virtual std::string getElementName();
virtual tinyxml2::XMLElement *saveXML( tinyxml2::XMLNode *parent);
virtual void loadXML(tinyxml2::XMLElement *e);
void setSpriteTexture(std::string sprite_texture);
void setSpriteAlpha(float alpha);
float getSpriteAlpha() const;
virtual void render(KRCamera *pCamera, std::vector<KRPointLight *> &point_lights, std::vector<KRDirectionalLight *> &directional_lights, std::vector<KRSpotLight *>&spot_lights, const KRViewport &viewport, KRNode::RenderPass renderPass);
virtual AABB getBounds();
protected:
std::string m_spriteTexture;
KRTexture *m_pSpriteTexture;
float m_spriteAlpha;
};
#endif