mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Refactoring, clean up shutdown path
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "EGpDisplayDriverType.h"
|
||||
#include "GpDisplayDriverTickStatus.h"
|
||||
|
||||
struct IGpDisplayDriver;
|
||||
struct IGpFiber;
|
||||
@@ -8,7 +9,7 @@ struct IGpVOSEventQueue;
|
||||
|
||||
struct GpDisplayDriverProperties
|
||||
{
|
||||
typedef void(*TickFunc_t)(void *context, IGpFiber *vosFiber);
|
||||
typedef GpDisplayDriverTickStatus_t (*TickFunc_t)(void *context, IGpFiber *vosFiber);
|
||||
typedef void(*RenderFunc_t)(void *context);
|
||||
|
||||
EGpDisplayDriverType m_type;
|
||||
|
||||
15
GpCommon/GpDisplayDriverTickStatus.h
Normal file
15
GpCommon/GpDisplayDriverTickStatus.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
namespace GpDisplayDriverTickStatuses
|
||||
{
|
||||
enum GpDisplayDriverTickStatus
|
||||
{
|
||||
kOK = 0,
|
||||
kNonFatalFault = 1,
|
||||
kFatalFault = 2,
|
||||
|
||||
kApplicationTerminated = 3,
|
||||
};
|
||||
}
|
||||
|
||||
typedef GpDisplayDriverTickStatuses::GpDisplayDriverTickStatus GpDisplayDriverTickStatus_t;
|
||||
Reference in New Issue
Block a user