Platform/Win32: remove Win32MsgBuffer
This commit is contained in:
parent
cdaed77bf7
commit
c7c1ff68fd
3 changed files with 0 additions and 45 deletions
|
|
@ -48,7 +48,6 @@ local platform_spec_module = Module("source/Platform/Win32", {
|
|||
"Win32Misc.cpp",
|
||||
"Win32Mouse.cpp",
|
||||
"Win32EventQueue.cpp",
|
||||
"Win32MsgBuffer.cpp",
|
||||
"Win32System.cpp",
|
||||
"glad_wgl.c"
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
#include <Spectre/System/Log.h>
|
||||
#include "Win32MsgBuffer.h"
|
||||
|
||||
namespace sp {
|
||||
|
||||
Win32MsgBuffer::Win32MsgBuffer() :
|
||||
index (0)
|
||||
{
|
||||
}
|
||||
|
||||
bool Win32MsgBuffer::postMessage(MSG msg)
|
||||
{
|
||||
if (index < WIN32_MSG_BUFFER_MAX_SIZE) {
|
||||
messages[index++] = msg;
|
||||
return true;
|
||||
}
|
||||
Log::warn("Win32MsgBuffer: Queue overflow\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
#ifndef PLATFORM_WIN32_MSG_BUFFER_H
|
||||
#define PLATFORM_WIN32_MSG_BUFFER_H
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
namespace sp {
|
||||
|
||||
#define WIN32_MSG_BUFFER_MAX_SIZE 64
|
||||
|
||||
struct Win32MsgBuffer {
|
||||
int index;
|
||||
MSG messages[WIN32_MSG_BUFFER_MAX_SIZE];
|
||||
|
||||
Win32MsgBuffer();
|
||||
|
||||
bool postMessage(MSG msg);
|
||||
};
|
||||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* PLATFORM_WIN32_MSG_BUFFER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue