From 836f8f1ddc1cb71a772bdae8b3110bd6ed541ffb Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Thu, 21 Jul 2005 20:04:51 -0400 Subject: [PATCH] Added: Beginning plugin suppord ~g2k --- include/oa_audio.h | 31 +++++++++++++++++++++++ include/oa_game.h | 18 ++++++++++++++ include/oa_input.h | 18 ++++++++++++++ include/oa_net.h | 18 ++++++++++++++ include/oa_video.h | 18 ++++++++++++++ src/oa_audio.cpp | 57 +++++++++++++++++++++++++++++++++++++++++++ src/oa_audio_alsa.cpp | 57 +++++++++++++++++++++++++++++++++++++++++++ src/oa_game.cpp | 22 +++++++++++++++++ src/oa_input.cpp | 22 +++++++++++++++++ src/oa_net.cpp | 22 +++++++++++++++++ src/oa_video.cpp | 22 +++++++++++++++++ 11 files changed, 305 insertions(+) create mode 100644 include/oa_audio.h create mode 100644 include/oa_game.h create mode 100644 include/oa_input.h create mode 100644 include/oa_net.h create mode 100644 include/oa_video.h create mode 100644 src/oa_audio.cpp create mode 100644 src/oa_audio_alsa.cpp create mode 100644 src/oa_game.cpp create mode 100644 src/oa_input.cpp create mode 100644 src/oa_net.cpp create mode 100644 src/oa_video.cpp diff --git a/include/oa_audio.h b/include/oa_audio.h new file mode 100644 index 0000000..1f0ebbf --- /dev/null +++ b/include/oa_audio.h @@ -0,0 +1,31 @@ +#ifndef __oa_audio_h__ +#define __oa_audio_h__ + +#include "vector.h" + +//NO REAL work is done by _init or _fini they should just call +// Init and DeInit instead. +void _init(); +void _fini(); +void Init(); +void DeInit(); + +namespace OpenArena +{ + namespace Audio + { + class Stream + { + Stream(); + Stream(const char* filename); + bool Load(const char* filename); + void UnLoad(); + bool Play(); + bool Play3D(); + SetPosition(Vec3d position); + Vec3d GetPosition(); + }; + }; +}; + +#endif diff --git a/include/oa_game.h b/include/oa_game.h new file mode 100644 index 0000000..3ca2473 --- /dev/null +++ b/include/oa_game.h @@ -0,0 +1,18 @@ +#ifndef __oa_game_h__ +#define __oa_game_h__ + +//NO REAL work is done by _init or _fini they should just call +// Init and DeInit instead. +void _init(); +void _fini(); +void Init(); +void DeInit(); + +namespace OpenArena +{ + namespace Game + { + }; +}; + +#endif diff --git a/include/oa_input.h b/include/oa_input.h new file mode 100644 index 0000000..0ea772c --- /dev/null +++ b/include/oa_input.h @@ -0,0 +1,18 @@ +#ifndef __oa_input_h__ +#define __oa_input_h__ + +//NO REAL work is done by _init or _fini they should just call +// Init and DeInit instead. +void _init(); +void _fini(); +void Init(); +void DeInit(); + +namespace OpenArena +{ + namespace Input + { + }; +}; + +#endif diff --git a/include/oa_net.h b/include/oa_net.h new file mode 100644 index 0000000..b1df5e3 --- /dev/null +++ b/include/oa_net.h @@ -0,0 +1,18 @@ +#ifndef __oa_net_h__ +#define __oa_net_h__ + +//NO REAL work is done by _init or _fini they should just call +// Init and DeInit instead. +void _init(); +void _fini(); +void Init(); +void DeInit(); + +namespace OpenArena +{ + namespace Net + { + }; +}; + +#endif diff --git a/include/oa_video.h b/include/oa_video.h new file mode 100644 index 0000000..cd560fd --- /dev/null +++ b/include/oa_video.h @@ -0,0 +1,18 @@ +#ifndef __oa_video_h__ +#define __oa_video_h__ + +//NO REAL work is done by _init or _fini they should just call +// Init and DeInit instead. +void _init(); +void _fini(); +void Init(); +void DeInit(); + +namespace OpenArena +{ + namespace Video + { + }; +}; + +#endif diff --git a/src/oa_audio.cpp b/src/oa_audio.cpp new file mode 100644 index 0000000..4eba92c --- /dev/null +++ b/src/oa_audio.cpp @@ -0,0 +1,57 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Module: oa_audio.cpp +// Author: Tom Hicks +// Creation: 07-21-2005 +// LastEdit: 07-21-2005 +// Editors: Tom Hicks +// +// Purpose: +// +// Summary of Methods: +// +//////////////////////////////////////////////////////////////////////////////// + +#include "../include/oa_audio.h" + +namespace OpenArena +{ + namespace Audio + { + Stream::Stream() + { + } + + Stream::Stream(const char* filename) + { + } + + bool Stream::Load(const char* filename) + { + return false; + } + + void Stream::UnLoad() + { + } + + bool Stream::Play() + { + return false; + } + + bool Stream::Play3D() + { + return false; + } + + void Stream::SetPosition(Vec3d position) + { + } + + Vec3d Stream::GetPosition() + { + return Vec3d(0,0,0); + } + }; +}; diff --git a/src/oa_audio_alsa.cpp b/src/oa_audio_alsa.cpp new file mode 100644 index 0000000..4eba92c --- /dev/null +++ b/src/oa_audio_alsa.cpp @@ -0,0 +1,57 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Module: oa_audio.cpp +// Author: Tom Hicks +// Creation: 07-21-2005 +// LastEdit: 07-21-2005 +// Editors: Tom Hicks +// +// Purpose: +// +// Summary of Methods: +// +//////////////////////////////////////////////////////////////////////////////// + +#include "../include/oa_audio.h" + +namespace OpenArena +{ + namespace Audio + { + Stream::Stream() + { + } + + Stream::Stream(const char* filename) + { + } + + bool Stream::Load(const char* filename) + { + return false; + } + + void Stream::UnLoad() + { + } + + bool Stream::Play() + { + return false; + } + + bool Stream::Play3D() + { + return false; + } + + void Stream::SetPosition(Vec3d position) + { + } + + Vec3d Stream::GetPosition() + { + return Vec3d(0,0,0); + } + }; +}; diff --git a/src/oa_game.cpp b/src/oa_game.cpp new file mode 100644 index 0000000..c973bbf --- /dev/null +++ b/src/oa_game.cpp @@ -0,0 +1,22 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Module: oa_game.cpp +// Author: Tom Hicks +// Creation: 07-21-2005 +// LastEdit: 07-21-2005 +// Editors: Tom Hicks +// +// Purpose: +// +// Summary of Methods: +// +//////////////////////////////////////////////////////////////////////////////// + +#include "../include/oa_game.h" + +namespace OpenArena +{ + namespace Game + { + }; +}; diff --git a/src/oa_input.cpp b/src/oa_input.cpp new file mode 100644 index 0000000..1ea7988 --- /dev/null +++ b/src/oa_input.cpp @@ -0,0 +1,22 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Module: oa_input.cpp +// Author: Tom Hicks +// Creation: 07-21-2005 +// LastEdit: 07-21-2005 +// Editors: Tom Hicks +// +// Purpose: +// +// Summary of Methods: +// +//////////////////////////////////////////////////////////////////////////////// + +#include "../include/oa_input.h" + +namespace OpenArena +{ + namespace Input + { + }; +}; diff --git a/src/oa_net.cpp b/src/oa_net.cpp new file mode 100644 index 0000000..7ff5f15 --- /dev/null +++ b/src/oa_net.cpp @@ -0,0 +1,22 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Module: oa_net.cpp +// Author: Tom Hicks +// Creation: 07-21-2005 +// LastEdit: 07-21-2005 +// Editors: Tom Hicks +// +// Purpose: +// +// Summary of Methods: +// +//////////////////////////////////////////////////////////////////////////////// + +#include "../include/oa_net.h" + +namespace OpenArena +{ + namespace Net + { + }; +}; diff --git a/src/oa_video.cpp b/src/oa_video.cpp new file mode 100644 index 0000000..92f8ef3 --- /dev/null +++ b/src/oa_video.cpp @@ -0,0 +1,22 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Module: oa_video.cpp +// Author: Tom Hicks +// Creation: 07-21-2005 +// LastEdit: 07-21-2005 +// Editors: Tom Hicks +// +// Purpose: +// +// Summary of Methods: +// +//////////////////////////////////////////////////////////////////////////////// + +#include "../include/oa_video.h" + +namespace OpenArena +{ + namespace Video + { + }; +};