File tree Expand file tree Collapse file tree 1 file changed +23
-18
lines changed Expand file tree Collapse file tree 1 file changed +23
-18
lines changed Original file line number Diff line number Diff line change @@ -155,25 +155,30 @@ - (BOOL)loadFileAtPath:(NSString *)path error:(NSError**)error {
155
155
// return info.timing.fps ?: 60;
156
156
// }
157
157
158
- // - (CGSize)aspectSize {
159
- // return CGSizeMake(4, 3);
160
- // }
161
- //
162
- // - (CGSize)bufferSize {
163
- // return CGSizeMake(272, 228);
164
- // }
158
+ - (CGRect)screenRect {
159
+ return CGRectMake (0 , 0 , 272 , 240 );
160
+ }
161
+
162
+ - (CGSize)aspectSize {
163
+ return CGSizeMake (4 , 3 );
164
+ }
165
+
166
+ - (CGSize)bufferSize {
167
+ return CGSizeMake (272 , 240 );
168
+ }
169
+
170
+ - (GLenum)pixelFormat {
171
+ return GL_RGB565;
172
+ }
173
+
174
+ - (GLenum)pixelType {
175
+ return GL_UNSIGNED_SHORT_5_6_5;
176
+ }
177
+
178
+ - (GLenum)internalPixelFormat {
179
+ return GL_RGB565;
180
+ }
165
181
166
- // - (GLenum)pixelFormat {
167
- // return GL_BGRA;
168
- // }
169
- //
170
- // - (GLenum)pixelType {
171
- // return GL_UNSIGNED_BYTE;
172
- // }
173
- //
174
- // - (GLenum)internalPixelFormat {
175
- // return GL_RGBA;
176
- // }
177
182
# pragma mark - Audio
178
183
179
184
// - (double)audioSampleRate {
You can’t perform that action at this time.
0 commit comments