Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSOpenGLPixelBuffer.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
31 super(id); | 31 super(id); |
32 } | 32 } |
33 | 33 |
34 public NSOpenGLPixelBuffer initWithTextureTarget (GLenum target, GLenum format, GLint maxLevel, GLsizei pixelsWide, GLsizei pixelsHigh) | 34 public NSOpenGLPixelBuffer initWithTextureTarget (GLenum target, GLenum format, GLint maxLevel, GLsizei pixelsWide, GLsizei pixelsHigh) |
35 { | 35 { |
36 objc.id result = OS.objc_msgSend(this.id, | 36 objc.id result = OS.objc_msgSend(this.id_, |
37 OS.sel_initWithTextureTarget_1textureInternalFormat_1textureMaxMipMapLevel_1pixelsWide_1pixelsHigh_1, target, format, maxLevel, | 37 OS.sel_initWithTextureTarget_1textureInternalFormat_1textureMaxMipMapLevel_1pixelsWide_1pixelsHigh_1, target, format, maxLevel, |
38 pixelsWide, pixelsHigh); | 38 pixelsWide, pixelsHigh); |
39 return result !is null ? this : null; | 39 return result !is null ? this : null; |
40 } | 40 } |
41 | 41 |
42 public GLsizei pixelsHigh () | 42 public GLsizei pixelsHigh () |
43 { | 43 { |
44 return cast(GLsizei) OS.objc_msgSend(this.id, OS.sel_pixelsHigh); | 44 return cast(GLsizei) OS.objc_msgSend(this.id_, OS.sel_pixelsHigh); |
45 } | 45 } |
46 | 46 |
47 public GLsizei pixelsWide () | 47 public GLsizei pixelsWide () |
48 { | 48 { |
49 return cast(GLsizei) OS.objc_msgSend(this.id, OS.sel_pixelsWide); | 49 return cast(GLsizei) OS.objc_msgSend(this.id_, OS.sel_pixelsWide); |
50 } | 50 } |
51 | 51 |
52 public GLenum textureInternalFormat () | 52 public GLenum textureInternalFormat () |
53 { | 53 { |
54 return cast(GLenum) OS.objc_msgSend(this.id, OS.sel_textureInternalFormat); | 54 return cast(GLenum) OS.objc_msgSend(this.id_, OS.sel_textureInternalFormat); |
55 } | 55 } |
56 | 56 |
57 public GLint textureMaxMipMapLevel () | 57 public GLint textureMaxMipMapLevel () |
58 { | 58 { |
59 return cast(GLint) OS.objc_msgSend(this.id, OS.sel_textureMaxMipMapLevel); | 59 return cast(GLint) OS.objc_msgSend(this.id_, OS.sel_textureMaxMipMapLevel); |
60 } | 60 } |
61 | 61 |
62 public GLenum textureTarget () | 62 public GLenum textureTarget () |
63 { | 63 { |
64 return cast(GLenum) OS.objc_msgSend(this.id, OS.sel_textureTarget); | 64 return cast(GLenum) OS.objc_msgSend(this.id_, OS.sel_textureTarget); |
65 } | 65 } |
66 | 66 |
67 } | 67 } |