Files
kraken/kraken/KRReverbZone.h
2020-06-21 22:42:10 -07:00

55 lines
1.4 KiB
C++
Executable File

//
// KRReverbZone.h
// KREngine
//
// Created by Kearwood Gilbert on 2012-12-06.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KRREVERB_ZONE_H
#define KRREVERB_ZONE_H
#include "KRResource.h"
#include "KRNode.h"
#include "KRTexture.h"
class KRReverbZone : public KRNode {
public:
static void InitNodeInfo(KrNodeInfo* nodeInfo);
KRReverbZone(KRScene &scene, std::string name);
virtual ~KRReverbZone();
virtual std::string getElementName();
virtual tinyxml2::XMLElement *saveXML( tinyxml2::XMLNode *parent);
virtual void loadXML(tinyxml2::XMLElement *e);
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);
std::string getZone();
void setZone(const std::string &zone);
float getGradientDistance();
void setGradientDistance(float gradient_distance);
std::string getReverb();
void setReverb(const std::string &reverb);
float getReverbGain();
void setReverbGain(float reverb_gain);
virtual AABB getBounds();
float getContainment(const Vector3 &pos);
private:
std::string m_zone;
float m_gradient_distance;
std::string m_reverb;
float m_reverb_gain;
};
#endif