资源简介
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个文件信息
- 上一篇:《泛在电力物联网建设大纲》原版
- 下一篇:超市管理完整系统源码
相关资源
- Shader Forge 1.3.8.0_unity2018.unitypackage
- ShaderForge兼容Unity2018版本
- ShaderX5 PDF
- unity3d 双面贴图
- Shader Forge 1.3.8 最新版
- ZBrush材质球350个
- Rendertexture和Projector实现的实时阴影
- glsl shader 多重纹理映射
- cloudsim仿真
- siggraph2010_vlachos_waterflow
- opengl_shader_鱼眼校正的(demo)
- SilverLining Skies 3D Clouds v1.9.unitypackage
- 循环播放图片Shader.zip
- Unityshader——HLSL初级教程
- 管道流水效果/管道气体效果Shader
- 2D动态云彩
- shader水效果.rar
- 几个常用shader
- opengl_shader_鱼眼校正
- RunnerHorizonBendingDiffuse By SqueakyOak
- alShaders-win-1.0.0rc20-ai5.0.0.0
- Unity 2018 Shaders and Effects Cookbook Third
- Unity 卡通材质包
- 《Unity3D ShaderLab开发实战详解》源代码
- Water_MirrorReflect
- Water_EnvironmentMapping
- Shader Forge 最新三个版本(1.3.8+1.3.7+
- Unity+Shader入门精要完整版
- HandDrawnShaderPack1.2
- Unity着色器和屏幕特效开发秘籍 中文
评论
共有 条评论