1:UI动画序列帧shader 分割线 Shader "Custom/ImageAnim" {Properties{[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}_Color("Tint", Color) = (1,1,1, ...
分类:
其他好文 时间:
2016-08-18 21:10:44
阅读次数:
240
Shader "Custom/CullImage" {Properties{[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}_Color("Tint", Color) = (1,1,1,1)_StencilComp("Sten ...
分类:
其他好文 时间:
2016-08-18 21:03:59
阅读次数:
180
Pixmap 的基本用法比较简单: 由 Pixmap 对象生成 Texture 对象,再绘制到屏幕上。流程比较简单,图片显示正常! 由 Pixmap 对象,再生成一个新的 Pixmap 对象,然后生成新的 Texture 对象,再绘制到屏幕上。如下代码: 在屏幕上显示的时候,由新生成的 Pixmap ...
分类:
其他好文 时间:
2016-08-13 12:39:40
阅读次数:
434
在这篇中两个点。 一个是raw格式图片的贴图: 一个双重贴图即部分覆盖,图像数据,以及两个贴图的开始部分,范围以及模式是重点: 下面为代码,同样修改部分位于双行星号内。 1 /************************************************************** ...
分类:
其他好文 时间:
2016-08-13 11:22:21
阅读次数:
151
今天有人问cocos2dx的纹理格式有哪些,懵了,啥是“纹理格式”? 其实就是PixelFormat-像素格式,在CCtexture2d.h中有列出 enum class PixelFormat { //! auto detect the type AUTO, //! 32-bit texture: ...
分类:
其他好文 时间:
2016-08-11 17:56:36
阅读次数:
215
fresco加载图片方法 布局文件引入 xmlns:fresco="http://schemas.android.com/apk/res-auto" 加载图片方法 搜索 Bitmap too large to be uploaded into a texture 关键字网上说在 applicatio ...
分类:
其他好文 时间:
2016-08-10 06:30:18
阅读次数:
218
加载图片贴图,采用了SDL_Window、SDL_Renderer、SDL_Texture和SDL_Image库 实例: 结果: ...
分类:
其他好文 时间:
2016-08-09 12:11:08
阅读次数:
287
SDL2.0的几何图形绘画 通过SDL_Window、SDL_Renderer、SDL_Texture三者实现了简单的几何图形绘画。 包括了SDL_RenderDrawPoint、SDL_RenderFillRect、SDL_RenderDrawLine、SDL_SetRenderDrawColor ...
分类:
其他好文 时间:
2016-08-08 19:26:37
阅读次数:
198
这里先声明转自http://www.jianshu.com/p/b37ee8cea04c 1.资源类型 GameObject, Transform, Mesh, Texture, Material, Shader, Script和各种其他Assets。 2.资源创建方式 静态引用,在脚本中加一个pu ...
分类:
编程语言 时间:
2016-08-04 16:18:37
阅读次数:
357
矩形纹理纹理目标为GL_TEXTURE_RECTANGLE。
首选,矩形纹理不能进行Mip贴图;
然后,矩形纹理不是标准化的(实际上是对像素寻址)
最后,纹理坐标不能重复,并且不支持纹理压缩加载矩形纹理bool LoadTGATextureRect(const char *szFileName, GLenum minFilter, GLenum magFilter, GLenum wrapMo...
分类:
其他好文 时间:
2016-07-17 00:22:46
阅读次数:
271