#import "PaintView.h" #import <QuartzCore/QuartzCore.h> #import <GLKit/GLKit.h> #import <OpenGLES/EAGLDrawable.h> #import "debug.h" #import "shaderUtil.h" #import "fileUtil.h" //画笔透明度 #define kBrushOpacity (1.0 / 2.0) //画笔每一笔,有几个点! #define kBrushPixelStep 2 //画笔的比例 #define kBrushScale 2 enum { PROGRAM_POINT, //0, NUM_PROGRAMS //1,有几个程序 }; enum { UNIFORM_MVP, //0 UNIFORM_POINT_SIZE, //1 UNIFORM_VERTEX_COLOR,//2 UNIFORM_TEXTURE, //3 NUM_UNIFORMS //4 }; enum { ATTRIB_VERTEX, //0 NUM_ATTRIBS//1...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with GLint
Contact GLint, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack