mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
More work. Audio driver works enough to play music now.
This commit is contained in:
36
PortabilityLayer/QDGraf.h
Normal file
36
PortabilityLayer/QDGraf.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "PixelFormat.h"
|
||||
#include "QDState.h"
|
||||
#include "QDPort.h"
|
||||
|
||||
struct PixMap;
|
||||
struct Rect;
|
||||
|
||||
struct CGraf
|
||||
{
|
||||
CGraf()
|
||||
: m_port(PortabilityLayer::QDPortType_CGraf)
|
||||
{
|
||||
}
|
||||
|
||||
int Init(const Rect &rect, PortabilityLayer::PixelFormat pixelFormat)
|
||||
{
|
||||
if (int errorCode = m_port.Init(rect, pixelFormat))
|
||||
return errorCode;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Must be the first item
|
||||
PortabilityLayer::QDPort m_port;
|
||||
};
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
class CGrafImpl final : public CGraf
|
||||
{
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user