CSC8503_Advanced_Game_Technologies / Plugins / PlayStation4 / PS4Frame.h
PS4Frame.h
Raw
#pragma once
#ifdef _ORBIS
#include "PS4MemoryAware.h"

#include <gnmx.h>

namespace NCL {
	namespace PS4 {
		class PS4Frame :
			public PS4MemoryAware
		{
		public:
			PS4Frame();
			~PS4Frame();

			sce::Gnmx::GnmxGfxContext& GetCommandBuffer() {
				return commandBuffer;
			}

			void BlockUntilReady();
			void StartFrame();
			void EndFrame();

		protected:
			sce::Gnmx::GnmxGfxContext commandBuffer;

			uint64_t* newFrameTag;
		};
	}
}
#endif