25#ifndef _SHADER_TEST2_H_
26#define _SHADER_TEST2_H_
28#include "extensions/cocos-ext.h"
29#include "../BaseTest.h"
37 virtual std::string
title()
const override {
return "Effects on Sprites";}
56#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
68 virtual std::string
subtitle()
const {
return "Different effects on Sprite";}
82 virtual std::string
subtitle()
const {
return "Sprite Lamp effects";}
85 virtual void onTouchesBegan(
const std::vector<cocos2d::Touch*>& touches, cocos2d::Event* unused_event);
86 virtual void onTouchesMoved(
const std::vector<cocos2d::Touch*>& touches, cocos2d::Event* unused_event);
87 virtual void onTouchesEnded(
const std::vector<cocos2d::Touch*>& touches, cocos2d::Event* unused_event);
DEFINE_TEST_SUITE(Shader2Tests)
cocos2d::EventListenerCustom * _backgroundListener
cocos2d::backend::ProgramState * _programState
virtual void setTarget(EffectSprite *sprite)
bool initProgramState(const std::string &fragmentFilename)
cocos2d::backend::ProgramState * getProgramState() const
cocos2d::Sprite * _lightSprite
virtual void onTouchesEnded(const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *unused_event)
virtual std::string subtitle() const
virtual void onTouchesBegan(const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *unused_event)
virtual void onTouchesMoved(const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *unused_event)
CREATE_FUNC(EffectSpriteLamp)
cocos2d::Vector< Effect * > _effects
CREATE_FUNC(EffectSpriteTest)
virtual std::string subtitle() const
virtual std::string title() const override