Files
kraken/KREngine/KREngine/Classes/KRPointLight.h
kearwood 5768902ee2 Implemented notification system needed for occlusion culling and transparency sorting
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4072
2012-08-17 01:04:49 +00:00

39 lines
897 B
Objective-C

//
// KRPointLight.h
// KREngine
//
// Created by Kearwood Gilbert on 12-04-05.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KREngine_KRPointLight_h
#define KREngine_KRPointLight_h
#import "KRLight.h"
#import "KRMat4.h"
class KRPointLight : public KRLight {
public:
KRPointLight(KRContext &context, std::string name);
virtual ~KRPointLight();
virtual std::string getElementName();
#if TARGET_OS_IPHONE
virtual void render(KRCamera *pCamera, KRContext *pContext, KRBoundingVolume &frustrumVolume, KRMat4 &viewMatrix, KRVector3 &cameraPosition, KRVector3 &lightDirection, KRMat4 *pShadowMatrices, GLuint *shadowDepthTextures, int cShadowBuffers, KRNode::RenderPass renderPass);
#endif
private:
KRMat4 m_modelMatrix;
void generateMesh();
GLfloat *m_sphereVertices;
int m_cVertices;
};
#endif