|
@@ -244,26 +244,25 @@ void Video::Capture(uint32_t *buffer) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int Video::GetWidth() |
|
|
|
|
|
|
|
|
vec2i Video::GetSize() |
|
|
{ |
|
|
{ |
|
|
#if defined ANDROID_NDK |
|
|
#if defined ANDROID_NDK |
|
|
return saved_viewport.x; |
|
|
|
|
|
|
|
|
return saved_viewport; |
|
|
#else |
|
|
#else |
|
|
GLint v[4]; |
|
|
GLint v[4]; |
|
|
glGetIntegerv(GL_VIEWPORT, v); |
|
|
glGetIntegerv(GL_VIEWPORT, v); |
|
|
return v[2]; |
|
|
|
|
|
|
|
|
return vec2i(v[2], v[3]); |
|
|
#endif |
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int Video::GetWidth() |
|
|
|
|
|
{ |
|
|
|
|
|
return GetSize().x; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
int Video::GetHeight() |
|
|
int Video::GetHeight() |
|
|
{ |
|
|
{ |
|
|
#if defined ANDROID_NDK |
|
|
|
|
|
return saved_viewport.y; |
|
|
|
|
|
#else |
|
|
|
|
|
GLint v[4]; |
|
|
|
|
|
glGetIntegerv(GL_VIEWPORT, v); |
|
|
|
|
|
return v[3]; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
return GetSize().y; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} /* namespace lol */ |
|
|
} /* namespace lol */ |
|
|