• 大小: 1.19MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-14
  • 语言: 其他
  • 标签: clouds  shader  

资源简介

clouds shader, opengl实现 ,很有参考价值

资源截图

代码片段和文件信息

#include “AppDelegate.h“
#include “HelloWorldScene.h“

USING_NS_CC;

AppDelegate::AppDelegate() {

}

AppDelegate::~AppDelegate() 
{
}

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    auto director = Director::getInstance();
    auto glview = director->getOpenGLView();
    if(!glview) {
        glview = GLView::create(“Clouds“);
glview->setframeSize(1024 768);
director->setOpenGLView(glview);
    }

    // turn on display FPS
    director->setDisplayStats(false);

    // set FPS. the default value is 1.0/60 if you don‘t call this
    director->setAnimationInterval(1.0 / 60);

    // create a scene. it‘s an autorelease object
    auto scene = HelloWorld::createScene();

    // run
    director->runWithScene(scene);

    return true;
}

// This function will be called when the app is inactive. When comes a phone callit‘s be invoked too
void AppDelegate::applicationDidEnterBackground() {
    Director::getInstance()->stopAnimation();

    // if you use SimpleAudioEngine it must be pause
    // SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
}

// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground() {
    Director::getInstance()->startAnimation();

    // if you use SimpleAudioEngine it must resume here
    // SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1395  2014-05-09 12:30  tutorial\cocos2d-x3.0\Classes\AppDelegate.cpp

     文件        947  2014-04-01 18:48  tutorial\cocos2d-x3.0\Classes\AppDelegate.h

     文件       3710  2014-05-09 12:24  tutorial\cocos2d-x3.0\Classes\HelloWorldScene.cpp

     文件        723  2014-05-09 11:01  tutorial\cocos2d-x3.0\Classes\HelloWorldScene.h

     文件      25027  2014-05-07 23:49  tutorial\cocos2d-x3.0\Resources\bg.png

     文件        736  2014-05-08 21:14  tutorial\cocos2d-x3.0\Resources\clouds.fs

     文件        868  2014-05-09 10:56  tutorial\cocos2d-x3.0\Resources\clouds.vs

     文件      25776  2014-04-01 18:48  tutorial\cocos2d-x3.0\Resources\fonts\Marker Felt.ttf

     文件     405499  2014-05-08 10:40  tutorial\cocos2d-x3.0\Resources\noise_1024.png

     文件      24727  2014-05-07 23:27  tutorial\cocos2d-x3.0\Resources\noise_256.png

     文件     146252  2014-05-08 10:44  tutorial\cocos2d-x3.0\Resources\noise_512.png

     文件       1395  2014-05-09 12:30  tutorial\cocos2d-x3.1\Classes\AppDelegate.cpp

     文件        947  2014-04-01 18:48  tutorial\cocos2d-x3.1\Classes\AppDelegate.h

     文件       3227  2014-06-09 23:34  tutorial\cocos2d-x3.1\Classes\HelloWorldScene.cpp

     文件        723  2014-05-09 11:01  tutorial\cocos2d-x3.1\Classes\HelloWorldScene.h

     文件      25027  2014-05-07 23:49  tutorial\cocos2d-x3.1\Resources\bg.png

     文件        618  2014-06-09 23:31  tutorial\cocos2d-x3.1\Resources\clouds.fs

     文件        869  2014-06-09 23:27  tutorial\cocos2d-x3.1\Resources\clouds.vs

     文件      25776  2014-04-01 18:48  tutorial\cocos2d-x3.1\Resources\fonts\Marker Felt.ttf

     文件     405499  2014-05-08 10:40  tutorial\cocos2d-x3.1\Resources\noise_1024.png

     文件      24727  2014-05-07 23:27  tutorial\cocos2d-x3.1\Resources\noise_256.png

     文件     146252  2014-05-08 10:44  tutorial\cocos2d-x3.1\Resources\noise_512.png

     目录          0  2014-06-10 00:01  tutorial\cocos2d-x3.0\Resources\fonts

     目录          0  2014-05-30 09:42  tutorial\cocos2d-x3.1\Resources\fonts

     目录          0  2014-06-10 00:01  tutorial\cocos2d-x3.0\Classes

     目录          0  2014-06-10 00:01  tutorial\cocos2d-x3.0\Resources

     目录          0  2014-06-09 23:34  tutorial\cocos2d-x3.1\Classes

     目录          0  2014-06-09 23:35  tutorial\cocos2d-x3.1\Resources

     目录          0  2014-06-10 00:01  tutorial\cocos2d-x3.0

     目录          0  2014-06-10 00:03  tutorial\cocos2d-x3.1

............此处省略4个文件信息

评论

共有 条评论