Last change
on this file since 679 was 677, checked in by alloc, 12 years ago |
Daodan: Updated src to work with MinGW
|
File size:
789 bytes
|
Rev | Line | |
---|
[437] | 1 | #pragma once
|
---|
[477] | 2 | #ifndef DAODAN_CONSOLE_H
|
---|
| 3 | #define DAODAN_CONSOLE_H
|
---|
[437] | 4 |
|
---|
[677] | 5 | //#include <stdint.h>
|
---|
[437] | 6 |
|
---|
| 7 | #include "Daodan.h"
|
---|
| 8 |
|
---|
[446] | 9 | typedef struct {
|
---|
| 10 | char B;
|
---|
| 11 | char G;
|
---|
| 12 | char R;
|
---|
| 13 | char A;
|
---|
| 14 | } RGBA;
|
---|
| 15 |
|
---|
[476] | 16 |
|
---|
| 17 | typedef struct {
|
---|
| 18 | char A;
|
---|
| 19 | char R;
|
---|
| 20 | char G;
|
---|
| 21 | char B;
|
---|
| 22 | } ARGB;
|
---|
| 23 |
|
---|
| 24 | typedef struct {
|
---|
| 25 | char Char;
|
---|
[677] | 26 | short ignored;
|
---|
[476] | 27 | int Color; //ARGB Color;
|
---|
| 28 | } TStColorFormattingCharacter;
|
---|
| 29 |
|
---|
| 30 | extern TStColorFormattingCharacter* TStColorFormattingCharacters;
|
---|
| 31 | extern TStColorFormattingCharacter DDrDSayColors[];
|
---|
[677] | 32 |
|
---|
| 33 | #ifdef __cplusplus
|
---|
| 34 | extern "C"
|
---|
| 35 | #endif
|
---|
[437] | 36 | void DDrConsole_Print(const char* text);
|
---|
[677] | 37 |
|
---|
| 38 | #ifdef __cplusplus
|
---|
| 39 | extern "C"
|
---|
| 40 | #endif
|
---|
[446] | 41 | void DDrConsole_PrintColored(const char* text, int priority, RGBA color, RGBA shade);
|
---|
[677] | 42 |
|
---|
| 43 | #ifdef __cplusplus
|
---|
| 44 | extern "C"
|
---|
| 45 | #endif
|
---|
[437] | 46 | void DDrConsole_PrintF(const char* fmt, ...);
|
---|
| 47 |
|
---|
| 48 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.