mirror of
https://github.com/amwatson/CitraVR.git
synced 2024-09-20 03:11:40 +02:00
[GameSurfaceLayer] add section headers for Panel and GameSurfaceLayer
This commit is contained in:
parent
633a37cdcd
commit
6d6f8d53cb
1 changed files with 17 additions and 1 deletions
|
@ -212,6 +212,14 @@ XrVector2f GetDensityScaleForSize(const int32_t texWidth,
|
|||
|
||||
} // anonymous namespace
|
||||
|
||||
/*
|
||||
================================================================================
|
||||
|
||||
Panel
|
||||
|
||||
================================================================================
|
||||
*/
|
||||
|
||||
void Panel::Transform(const XrVector2f& point2d, XrVector2f& result) const {
|
||||
|
||||
result.x = (point2d.x * mWidth) + (mWidth / 2.0f);
|
||||
|
@ -219,6 +227,14 @@ void Panel::Transform(const XrVector2f& point2d, XrVector2f& result) const {
|
|||
result.y = ((1.0f - point2d.y) * mHeight) - (mHeight / 2.0f);
|
||||
}
|
||||
|
||||
/*
|
||||
================================================================================
|
||||
|
||||
GameSurfaceLayer
|
||||
|
||||
================================================================================
|
||||
*/
|
||||
|
||||
GameSurfaceLayer::GameSurfaceLayer(const XrVector3f&& position, JNIEnv* env, jobject activityObject,
|
||||
const XrSession& session, const uint32_t resolutionFactor)
|
||||
: mSession(session)
|
||||
|
|
Loading…
Reference in a new issue