forked from LukasBanana/LLGL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7798c79
commit 8d8760b
Showing
27 changed files
with
1,869 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
include/LLGL/Backend/OpenGL/Emscripten/EmscriptenNativeHandle.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* EmscriptenNativeHandle.h (OpenGL) | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
#ifndef LLGL_OPENGL_EMSCRIPTEN_NATIVE_HANDLE_H | ||
#define LLGL_OPENGL_EMSCRIPTEN_NATIVE_HANDLE_H | ||
|
||
|
||
namespace LLGL | ||
{ | ||
|
||
namespace OpenGL | ||
{ | ||
|
||
|
||
/** | ||
\brief Emscripten native handle structure for the OpenGL render system. | ||
\see RenderSystem::GetNativeHandle | ||
\see RenderSystemDescriptor::nativeHandle | ||
*/ | ||
struct RenderSystemNativeHandle | ||
{ | ||
int context; | ||
}; | ||
|
||
|
||
} // /namespace OpenGL | ||
|
||
} // /namespace LLGL | ||
|
||
|
||
#endif | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* LinuxNativeHandle.h | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
#ifndef LLGL_EMSCRIPTEN_NATIVE_HANDLE_H | ||
#define LLGL_EMSCRIPTEN_NATIVE_HANDLE_H | ||
|
||
#include <emscripten/val.h> | ||
|
||
namespace LLGL | ||
{ | ||
|
||
|
||
//! Emscripten native handle structure. | ||
struct NativeHandle | ||
{ | ||
//! HTML canvas object. | ||
emscripten::val canvas; | ||
}; | ||
|
||
|
||
} // /namespace LLGL | ||
|
||
|
||
#endif | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* LinuxDebug.cpp | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
#include "../Debug.h" | ||
#include <stdio.h> | ||
|
||
|
||
namespace LLGL | ||
{ | ||
|
||
|
||
LLGL_EXPORT void DebugPuts(const char* text) | ||
{ | ||
::fprintf(stderr, "%s\n", text); | ||
} | ||
|
||
|
||
} // /namespace LLGL | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* LinuxDebug.h | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
#ifndef LLGL_EMSCRIPTEN_DEBUG_H | ||
#define LLGL_EMSCRIPTEN_DEBUG_H | ||
|
||
|
||
#include <signal.h> | ||
|
||
#ifdef SIGTRAP | ||
# define LLGL_DEBUG_BREAK() raise(SIGTRAP) | ||
#else | ||
# define LLGL_DEBUG_BREAK() | ||
#endif | ||
|
||
|
||
#endif | ||
|
||
|
||
|
||
// ================================================================================ |
Oops, something went wrong.