mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
OpenXR - Pragma once instead of ifdefs
This commit is contained in:
parent
18ad9ea22b
commit
9fe7bbdb43
4 changed files with 4 additions and 16 deletions
|
@ -1,5 +1,4 @@
|
|||
#ifndef __VR_BASE
|
||||
#define __VR_BASE
|
||||
#pragma once
|
||||
|
||||
#include "VRFramebuffer.h"
|
||||
|
||||
|
@ -9,5 +8,3 @@ void VR_EnterVR( engine_t* engine );
|
|||
void VR_LeaveVR( engine_t* engine );
|
||||
|
||||
engine_t* VR_GetEngine( void );
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __VR_FRAMEBUFFER
|
||||
#define __VR_FRAMEBUFFER
|
||||
#pragma once
|
||||
|
||||
//OpenXR
|
||||
#define XR_USE_GRAPHICS_API_OPENGL_ES 1
|
||||
|
@ -244,5 +243,3 @@ static inline XrPosef XrPosef_Multiply(const XrPosef a, const XrPosef b) {
|
|||
c.position = XrPosef_Transform(a, b.position);
|
||||
return c;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __VR_INPUT_H
|
||||
#define __VR_INPUT_H
|
||||
#pragma once
|
||||
|
||||
#include "VRBase.h"
|
||||
|
||||
|
@ -42,5 +41,3 @@ uint32_t IN_VRGetButtonState( int controllerIndex );
|
|||
XrVector2f IN_VRGetJoystickState( int controllerIndex );
|
||||
|
||||
void QuatToYawPitchRoll(XrQuaternionf q, vec3_t rotation, vec3_t out);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __VR_RENDERER
|
||||
#define __VR_RENDERER
|
||||
#pragma once
|
||||
|
||||
#include "VRFramebuffer.h"
|
||||
|
||||
|
@ -9,5 +8,3 @@ void VR_DestroyRenderer( engine_t* engine );
|
|||
void VR_BeginFrame( engine_t* engine );
|
||||
void VR_DrawFrame( engine_t* engine );
|
||||
unsigned int VR_Framebuffer( engine_t* engine, int eye );
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue