├── APCU ├── Data │ └── universe_final.m64 ├── IntroWindow.cpp ├── IntroWindow.h ├── SetupDialog.cpp ├── SetupDialog.h ├── SetupDialog.rc ├── TexGen.cpp ├── TexGen.h ├── Track.cpp ├── Track.h ├── beyond2.ico ├── defines.h ├── fmod │ ├── Fmusic.c │ ├── Fsound.c │ ├── Mixer.h │ ├── Music.h │ ├── Sound.h │ ├── minifmod.h │ ├── mixer_clipcopy.c │ ├── mixer_clipcopy.h │ ├── mixer_fpu_ramp.c │ ├── mixer_fpu_ramp.h │ ├── music_formatxm.c │ ├── music_formatxm.h │ ├── system_file.c │ ├── system_file.h │ ├── system_memory.h │ └── xmeffects.h ├── genesis.h ├── inroengine.cpp ├── intro.cpp ├── intro.h ├── introengine.h ├── introgen.cpp ├── introgen.h ├── introgen.sln ├── introgen.vcxproj ├── introinput.cpp ├── introinput.h ├── introplayer.cpp ├── introplayer.h ├── music.obj ├── pipes.h ├── player.cpp ├── player.h ├── precalc.h ├── resource.h ├── samples.h ├── synth.cpp ├── synth.h ├── vectors.cpp └── vectors.h ├── ChaosTheory ├── ChaosTheory │ ├── Binary │ │ ├── asm.bat │ │ ├── ct.min │ │ ├── ct_nogreetz.min │ │ ├── ctpre.min │ │ ├── music.asm │ │ ├── music.mvm │ │ ├── music.obj │ │ ├── p.bat │ │ └── precalc.bat │ ├── Data │ │ ├── music.obj │ │ ├── precalc.h │ │ ├── project.h │ │ └── release.ico │ ├── SetupDialog.aps │ ├── SetupDialog.cpp │ ├── SetupDialog.h │ ├── SetupDialog.rc │ ├── aDDict2Engine.cpp │ ├── aDDict2Engine.h │ ├── aDDict2Engine.rc │ ├── aDDict2Engine.sln │ ├── aDDict2Engine.vcxproj │ ├── aDDict2Engine.vcxproj.filters │ ├── aDDict2Engine.vcxproj.user │ ├── bass.h │ ├── dsound.lib │ ├── glext.h │ ├── includelist.h │ ├── mvxPlayerLib.lib │ └── resource.h └── MinimalEngine │ ├── 3DEngine.h │ ├── 3dEngine.cpp │ ├── AdvancedMesh.cpp │ ├── AdvancedMesh.h │ ├── EventHandler.cpp │ ├── EventHandler.h │ ├── IntroEditorEffects.cpp │ ├── IntroEditorEffects.h │ ├── ObjectGenerators.cpp │ ├── ObjectGenerators.h │ ├── Parser.cpp │ ├── Parser.h │ ├── ParticleEngine.cpp │ ├── ParticleEngine.h │ ├── Splines.cpp │ ├── Splines.h │ ├── TexGen.cpp │ ├── TexGen.h │ ├── Vectors.cpp │ ├── Vectors.h │ ├── WindowHandler.cpp │ ├── WindowHandler.h │ ├── cubes.cpp │ ├── cubes.h │ ├── mvx_lite.h │ ├── texgenupdate │ ├── parse_new.cpp │ ├── parse_old.cpp │ ├── tex_new.cpp │ ├── tex_new.h │ ├── tex_old.cpp │ └── tex_old.h │ ├── writer.cpp │ └── writer.h ├── ProjectGenesis ├── IntroWindow.cpp ├── IntroWindow.h ├── SetupDialog.cpp ├── SetupDialog.h ├── SetupDialog.rc ├── TexGen.cpp ├── TexGen.h ├── Track.cpp ├── Track.h ├── beyond2.ico ├── cloth.cpp ├── cloth.h ├── defines.h ├── fmod │ ├── Fmusic.c │ ├── Fsound.c │ ├── Mixer.h │ ├── Music.h │ ├── Sound.h │ ├── minifmod.h │ ├── mixer_clipcopy.c │ ├── mixer_clipcopy.h │ ├── mixer_fpu_ramp.c │ ├── mixer_fpu_ramp.h │ ├── music_formatxm.c │ ├── music_formatxm.h │ ├── system_memory.h │ └── xmeffects.h ├── genesis.h ├── inroengine.cpp ├── intro.cpp ├── intro.h ├── introengine.h ├── introgen.cpp ├── introgen.h ├── introgen.sln ├── introgen.vcxproj ├── introinput.cpp ├── introinput.h ├── introplayer.cpp ├── introplayer.h ├── music.obj ├── pgprecalc.h ├── player.cpp ├── player.h ├── resource.h ├── samples.h ├── synth.cpp ├── synth.h ├── vectors.cpp └── vectors.h ├── Readme.txt ├── aDDict ├── DDgui.cpp ├── DDgui.h ├── DDwindow.cpp ├── DDwindow.h ├── Data │ ├── Musics │ │ ├── alap1234.zip │ │ └── apcu.zip │ └── Projects │ │ ├── genesis_final2.64k │ │ └── universe_final.64k ├── Engine.h ├── FileIO.cpp ├── FileIO.h ├── IntroEngine │ ├── CNSlogo.h │ ├── CNSprecalc.h │ ├── Intro.cpp │ ├── Intro.h │ ├── IntroEngine.dsp │ ├── IntroEngine.h │ ├── IntroEngine.plg │ ├── IntroEngine.vcxproj │ ├── IntroEngine.vcxproj.filters │ ├── IntroEngine.vcxproj.user │ ├── IntroInput.cpp │ ├── IntroInput.h │ ├── IntroWindow.cpp │ ├── IntroWindow.h │ ├── Precalc.cpp │ ├── Precalc.h │ ├── TexGen.cpp │ ├── TexGen.h │ ├── alienprobe.h │ ├── copytest.h │ ├── introengine.cpp │ ├── oldintroengine.cpp │ ├── oldintroengine.h │ ├── pretest.h │ ├── vectors.cpp │ └── vectors.h ├── Main.cpp ├── ModellGui.cpp ├── ModellGui.h ├── TexGen.cpp ├── TexGen.h ├── Track.cpp ├── Track.h ├── TxGenGui.cpp ├── TxGenGui.h ├── aDDict.cpp ├── aDDict.h ├── aDDict.rc ├── aDDict.sln ├── aDDict.vcxproj ├── addict.ico ├── addict.ini ├── backup.cpp ├── bckup.cpp ├── boolean.cpp ├── engine.cpp ├── filemenu.cpp ├── filemenu.h ├── findfile.cpp ├── findfile.h ├── fmod.dll ├── fmod.h ├── fmod │ ├── Fmusic.c │ ├── Fsound.c │ ├── Mixer.h │ ├── Music.h │ ├── Sound.h │ ├── Winmm.lib │ ├── minifmod.h │ ├── mixer_clipcopy.c │ ├── mixer_clipcopy.h │ ├── mixer_fpu_ramp.c │ ├── mixer_fpu_ramp.h │ ├── music_formatxm.c │ ├── music_formatxm.h │ ├── system_file.c │ ├── system_file.h │ ├── system_memory.h │ └── xmeffects.h ├── fmod_errors.h ├── fmoddyn.h ├── fmodvc.lib ├── gombok.h ├── gombok2.h ├── gombok3.h ├── introeditor.cpp ├── introeditor.h ├── keyframergui.cpp ├── keyframergui.h ├── mainmenu.h ├── resource.h ├── textbutton1.h ├── texts.h ├── tritri.cpp ├── vectors.cpp └── vectors.h ├── aDDict2 ├── 3dEngine.cpp ├── 3dEngine.h ├── AseParser.cpp ├── AseParser.h ├── ChunkHeaders.h ├── CommonGUIFunctions.cpp ├── CommonGUIFunctions.h ├── Data │ ├── projects │ │ ├── 4players_precalc.dmo │ │ ├── 4players_release.dmo │ │ ├── DOF_Hall.dmo │ │ ├── beyond_final.dmo │ │ ├── beyond_precalc.dmo │ │ ├── binary_ati_release.dmo │ │ ├── binary_nvidia_release.dmo │ │ ├── binary_precalc.dmo │ │ ├── buenzli_precalc.dmo │ │ ├── buenzli_release.dmo │ │ ├── chaos_theory_precalc.dmo │ │ ├── chaos_theory_release.dmo │ │ ├── memento_precalc.dmo │ │ ├── memento_release.dmo │ │ ├── nemesis_precalc.dmo │ │ ├── nemesis_release.dmo │ │ ├── sns_precalc.dmo │ │ ├── sns_release.dmo │ │ └── tutorial1.dmo │ ├── scenes │ │ └── cnslogo.scn │ └── textures │ │ ├── BUENZLIJAPAN.tex │ │ ├── BlueMarble.tex │ │ ├── Galaxies.tex │ │ ├── Planet.tex │ │ ├── buggy.tex │ │ ├── leaves.tex │ │ └── protozoa3.tex ├── Documentation │ ├── aDDict2_English_Users_Guide.chm │ └── aDDict2_Magyar_Felhasznaloi_Kezikonyv.chm ├── EffectTemplates.cpp ├── EffectTemplates.h ├── FileIO.cpp ├── FileIO.h ├── GUIItemList.h ├── GUIinterface.cpp ├── GUIinterface.h ├── Gui │ ├── buttons_01.h │ ├── buttons_02.h │ ├── buttons_03.h │ ├── buttons_04.h │ ├── buttons_05.h │ ├── buttons_06.h │ ├── buttons_07.h │ ├── buttons_08.h │ └── splash.obj ├── GuiImages.h ├── IntroEditor.cpp ├── IntroEditor.h ├── IntroEditorEffects.cpp ├── IntroEditorEffects.h ├── Layouter.cpp ├── Layouter.h ├── LayouterGUI.cpp ├── LayouterGUI.h ├── MinimalExport.cpp ├── MinimalExport.h ├── ModellerGUI.cpp ├── ModellerGUI.h ├── ObjectGenerators.cpp ├── ObjectGenerators.h ├── TexGen2.cpp ├── TexGen2.h ├── TexGenGUI.h ├── TexgenGUI.cpp ├── UberTool.cpp ├── UberTool.h ├── Vectors.cpp ├── Vectors.h ├── aDDict.rc ├── aDDict2.cpp ├── aDDict2.h ├── aDDict2.sln ├── aDDict2.vcxproj ├── aDDict2.vcxproj.user ├── aDDict2GUI.cpp ├── aDDict2GUI.h ├── aDDictMath.cpp ├── aDDictMath.h ├── addict.ico ├── bass.dll ├── bass.h ├── bass.lib ├── cubes.cpp ├── cubes.h ├── findfile.cpp ├── findfile.h ├── glew.h ├── glext.h ├── loadANDscene.cpp ├── memtrack.cpp ├── memtrack.h ├── mvx.h ├── mvxWavPlayerLib.lib ├── outdata.txt ├── resource.h ├── text.txt ├── tlFont.cpp ├── tlFont.h ├── wglew.h ├── windowhandler.cpp ├── windowhandler.h ├── writer.cpp └── writer.h └── license.txt /APCU/Data/universe_final.m64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/APCU/Data/universe_final.m64 -------------------------------------------------------------------------------- /APCU/IntroWindow.h: -------------------------------------------------------------------------------- 1 | #ifndef __IntroWindow__ 2 | #define __IntroWindow__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | extern HDC hDC; 10 | extern HGLRC hRC; 11 | extern HWND hWnd; 12 | extern HINSTANCE hInstance; 13 | 14 | extern bool keys[256]; 15 | extern bool active; 16 | 17 | extern bool done; 18 | extern bool mode3d; 19 | 20 | extern GLuint base,basesmall; 21 | extern MSG msg; 22 | 23 | extern int xres,yres; 24 | 25 | GLvoid KillGLWindow(GLvoid); 26 | LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 27 | BOOL Intro_CreateWindow(char* title, int width, int height, int bits, bool fullscreenflag, HICON icon, bool aontop); 28 | void switchto2d(); 29 | 30 | #endif -------------------------------------------------------------------------------- /APCU/SetupDialog.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "SetupDialog.h" 3 | #include "resource.h" 4 | 5 | SETUPCFG setupcfg; 6 | 7 | typedef struct { 8 | int w,h; 9 | } RES; 10 | 11 | RES ress[]={ 12 | { 320, 240}, 13 | { 400, 300}, 14 | { 512, 384}, 15 | { 640, 480}, 16 | { 800, 600}, 17 | {1024, 768}, 18 | //{1152, 864}, 19 | //{1280, 960}, 20 | //{1600,1200}, 21 | }; 22 | 23 | BOOL CALLBACK DlgFunc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam){ 24 | switch ( uMsg ) { 25 | case WM_INITDIALOG: { 26 | int i; 27 | for (i=0; i 4 | #include 5 | 6 | typedef struct { 7 | int fullscreen; 8 | int music; 9 | int resolution; 10 | int texturedetail; 11 | int alwaysontop; 12 | 13 | int cancel; 14 | } SETUPCFG; 15 | 16 | extern SETUPCFG setupcfg; 17 | 18 | int OpenSetupDialog(HINSTANCE hInstance); -------------------------------------------------------------------------------- /APCU/TexGen.h: -------------------------------------------------------------------------------- 1 | #ifndef __TexGen__ 2 | #define __TexGen__ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #define pi 3.141592654 10 | #define radtheta 0.017453292 11 | 12 | #define DD_fractal 1 13 | #define DD_plasma 2 14 | #define DD_cells 3 15 | #define DD_envmap 4 16 | #define DD_subplasm 5 17 | #define DD_clear 6 18 | #define DD_text 7 19 | 20 | #define DD_sindist 10 21 | #define DD_offset 11 22 | #define DD_twirl 12 23 | #define DD_blur 15 24 | #define DD_map 17 25 | #define DD_dirblur 18 26 | #define DD_xchng 20 27 | #define DD_copy 23 28 | #define DD_mix 24 29 | #define DD_mul 25 30 | #define DD_add 26 31 | #define DD_max 27 32 | #define DD_contrast 30 33 | #define DD_invert 31 34 | #define DD_shade 32 35 | #define DD_bright 33 36 | #define DD_sincol 34 37 | #define DD_scale 35 38 | #define DD_hsv 36 39 | #define DD_colorize 37 40 | #define DD_mixmap 38 41 | 42 | #define DD_emboss 39 43 | #define DD_stored 255 44 | 45 | typedef unsigned char byte; 46 | typedef union tRGBA { 47 | struct {byte r,g,b,a;}; 48 | byte cols[4]; 49 | 50 | } rgba; 51 | 52 | typedef struct hsv_ {float h,s,v;} hsv; 53 | 54 | typedef struct { 55 | char text[256]; 56 | } string; 57 | 58 | typedef union { 59 | struct { 60 | byte commandnumber, 61 | layer, 62 | datalayer1, 63 | datalayer2, 64 | param1, 65 | param2, 66 | param3, 67 | param4, 68 | param5; 69 | }; 70 | byte command[9]; 71 | 72 | 73 | } texturecommand; 74 | 75 | struct texture { 76 | byte commandnum; 77 | texturecommand commands[100]; 78 | rgba layers[4][256][256]; 79 | string texts[100]; 80 | texture *next; 81 | int ID; 82 | }; 83 | 84 | struct material { 85 | unsigned char texture; 86 | unsigned char layer; 87 | unsigned char alphatexture; 88 | unsigned char alphalayer; 89 | unsigned char alphamode; 90 | unsigned char number; 91 | GLuint handle; 92 | rgba image[256][256]; 93 | material *next; 94 | }; 95 | 96 | void inittexture(texture &t); 97 | void performcommand(texture &t, texturecommand c); 98 | void inittextureengine(); 99 | #endif -------------------------------------------------------------------------------- /APCU/Track.cpp: -------------------------------------------------------------------------------- 1 | #include "Track.h" 2 | 3 | #pragma warning(disable : 4244) 4 | 5 | ////////////////////////////////////////////////////////////////////// 6 | // Construction/Destruction 7 | ////////////////////////////////////////////////////////////////////// 8 | 9 | /* 10 | #define TENS 1.0 11 | #define BIAS 1.0 12 | #define CONT 1.0 13 | */ 14 | #define TENS 0.0 15 | #define BIAS 0.0 16 | #define CONT 0.0 17 | #define LOOP 1 18 | #define MAXKEY 9999 19 | 20 | CTrack::CTrack() 21 | { 22 | } 23 | 24 | CTrack::~CTrack() 25 | { 26 | 27 | } 28 | 29 | float hermite(float p1,float p2,float r1,float r2,float t) { 30 | return p1*( 2.0*(t*t*t)-3.0*(t*t)+1.0)+ 31 | r1*( (t*t*t)-2.0*(t*t)+t )+ 32 | p2*(-2.0*(t*t*t)+3.0*(t*t) )+ 33 | r2*( (t*t*t)- (t*t) ); 34 | } 35 | 36 | void CTrack::InitVectors() { 37 | int i; 38 | if (numkey==1) return; 39 | for (i=0; i=frame) && (keys[0].frame>=0))) 112 | return keys[0].data; 113 | 114 | for (x=0; x 32767 ? 32767 : val); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /APCU/fmod/mixer_clipcopy.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_CLIPCOPY.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_CLIPCOPY_H 14 | #define _MIXER_CLIPCOPY_H 15 | 16 | void FSOUND_MixerClipCopy_Float32(void *dest, void *src, int len); 17 | 18 | #endif -------------------------------------------------------------------------------- /APCU/fmod/mixer_fpu_ramp.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_FPU_RAMP.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_FPU_RAMP_H 14 | #define _MIXER_FPU_RAMP_H 15 | 16 | #define FSOUND_VOLUMERAMP_STEPS 128 // at 44.1khz 17 | 18 | void FSOUND_Mixer_FPU_Ramp(void *mixptr, int len, signed char returnaddress); 19 | 20 | extern unsigned int mix_volumerampsteps; 21 | extern float mix_1overvolumerampsteps; 22 | 23 | #endif -------------------------------------------------------------------------------- /APCU/fmod/system_file.c: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* SYSTEM_FILE.C */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | #include "minifmod.h" 18 | #include "system_file.h" 19 | #include "system_memory.h" 20 | #include "sound.h" 21 | 22 | 23 | int (*FSOUND_File_ReadCallback)(void *buffer, int size) = NULL; 24 | void (*FSOUND_File_SeekCallback)(int pos, signed char mode) = NULL; 25 | int (*FSOUND_File_TellCallback)() = NULL; 26 | 27 | 28 | void FSOUND_File_SetCallbacks( 29 | int (*ReadCallback)(void *buffer, int size), 30 | void (*SeekCallback)(int pos, signed char mode), 31 | int (*TellCallback)()) 32 | { 33 | FSOUND_File_ReadCallback = ReadCallback; 34 | FSOUND_File_SeekCallback = SeekCallback; 35 | FSOUND_File_TellCallback = TellCallback; 36 | } 37 | 38 | 39 | int FSOUND_File_Read(void *buffer, int size) { 40 | return FSOUND_File_ReadCallback(buffer, size); 41 | } 42 | 43 | void FSOUND_File_Seek(int pos, signed char mode) { 44 | FSOUND_File_SeekCallback(pos, mode); 45 | } 46 | 47 | int FSOUND_File_Tell() { 48 | return FSOUND_File_TellCallback(); 49 | } 50 | -------------------------------------------------------------------------------- /APCU/fmod/system_file.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* SYSTEM_FILE.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _SYSTEM_FILE_H_ 14 | #define _SYSTEM_FILE_H_ 15 | 16 | typedef struct tag_FSOUND_FILE_HANDLE 17 | { 18 | signed char type; 19 | void *fp; 20 | signed char *mem; 21 | int basepos; 22 | unsigned int userhandle; 23 | int length; 24 | } FSOUND_FILE_HANDLE; 25 | 26 | void FSOUND_File_Open(); 27 | void FSOUND_File_Close(); 28 | int FSOUND_File_Read(void *buffer, int size); 29 | void FSOUND_File_Seek(int pos, signed char mode); 30 | int FSOUND_File_Tell(); 31 | 32 | 33 | /* 34 | extern unsigned int (*FSOUND_File_OpenCallback)(); 35 | extern void (*FSOUND_File_CloseCallback)(); 36 | */ 37 | extern int (*FSOUND_File_ReadCallback)(void *buffer, int size); 38 | extern void (*FSOUND_File_SeekCallback)(int pos, signed char mode); 39 | extern int (*FSOUND_File_TellCallback)(); 40 | 41 | #endif -------------------------------------------------------------------------------- /APCU/fmod/system_memory.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* SYSTEM_MEMORY.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _SYSTEM_MEMORY_H_ 14 | #define _SYSTEM_MEMORY_H_ 15 | 16 | // include your system's header here 17 | #include 18 | 19 | // redefine here 20 | #define FSOUND_Memory_Free(_ptr) free(_ptr) 21 | #define FSOUND_Memory_Alloc(_len) calloc(_len, 1) 22 | #define FSOUND_Memory_Calloc(_len) calloc(_len, 1) 23 | #define FSOUND_Memory_Realloc(_ptr, _len) realloc(_ptr, _len) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /APCU/intro.h: -------------------------------------------------------------------------------- 1 | #ifndef __intro__ 2 | #define __intro__ 3 | 4 | // ENGINE 5 | 6 | #include "player.h" 7 | #include 8 | #include 9 | #include 10 | #include "vectors.h" 11 | #include "introwindow.h" 12 | #include "introengine.h" 13 | #include "introinput.h" 14 | #include "introplayer.h" 15 | 16 | // EFFECTS 17 | 18 | void __stdcall precalc(float f); 19 | 20 | #endif -------------------------------------------------------------------------------- /APCU/introgen.h: -------------------------------------------------------------------------------- 1 | #ifndef __introgen__ 2 | #define __introgen__ 3 | 4 | #include "vectors.h" 5 | #include "introengine.h" 6 | 7 | #define aDDict_box 1 8 | #define aDDict_sphere 3 9 | #define aDDict_dodecaeder 4 10 | #define aDDict_hasab 6 11 | #define aDDict_cone 7 12 | #define aDDict_icosaeder 8 13 | #define aDDict_arc 9 14 | #define aDDict_loft 10 15 | #define aDDict_line 11 16 | #define aDDict_grid 12 17 | #define aDDict_clone 15 18 | 19 | #define aDDict_butterfly 100 20 | #define aDDict_linearsubdivision 101 21 | #define aDDict_boolean 102 22 | #define aDDict_blur 103 23 | #define aDDict_map 104 24 | 25 | #define tri_onplane 0 26 | #define tri_front 1 27 | #define tri_back 2 28 | #define tri_split 3 29 | 30 | void obj_generatenormals(object *o); 31 | void obj_counttexturecoordinates(object *o, int xr, int yr, int xoff, int yoff, bool swap, bool xswp, bool yswp); 32 | float getmappixel(vector2 t, int channel, bool nowrap); 33 | 34 | void obj_createprimitive(object *o, char primitive, int param1, int param2, int param3, int param4); 35 | //void obj_boolean(object *o1, object *o2, int function); 36 | 37 | void butterflysubdivision(object *obj, bool linear); 38 | void meshblur(object *obj); 39 | 40 | #endif -------------------------------------------------------------------------------- /APCU/introgen.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "introgen", "introgen.vcxproj", "{C525121F-D604-F9A3-1F56-13273EC3DFA0}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {C525121F-D604-F9A3-1F56-13273EC3DFA0}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {C525121F-D604-F9A3-1F56-13273EC3DFA0}.Debug|Win32.Build.0 = Debug|Win32 13 | {C525121F-D604-F9A3-1F56-13273EC3DFA0}.Release|Win32.ActiveCfg = Release|Win32 14 | {C525121F-D604-F9A3-1F56-13273EC3DFA0}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /APCU/introinput.h: -------------------------------------------------------------------------------- 1 | #ifndef __introinput__ 2 | #define __introinput__ 3 | 4 | #include 5 | #include "intro.h" 6 | #include "introengine.h" 7 | #include "introgen.h" 8 | 9 | struct camfield 10 | { 11 | unsigned fovwritten : 1, 12 | rollwritten: 1, 13 | eyexwritten : 1, 14 | eyeywritten : 1, 15 | eyezwritten : 1, 16 | targetxwritten: 1, 17 | targetywritten: 1, 18 | targetzwritten: 1; 19 | }; 20 | 21 | struct objfield 22 | { 23 | unsigned posx : 1, 24 | posy : 1, 25 | posz : 1, 26 | rotx : 1, 27 | roty : 1, 28 | rotz : 1, 29 | rota : 1, 30 | strx : 1, 31 | stry : 1, 32 | strz : 1, 33 | colr : 1, 34 | colg : 1, 35 | colb : 1, 36 | cola : 1; 37 | }; 38 | 39 | void loadprojectfile(unsigned char *file); 40 | 41 | #endif -------------------------------------------------------------------------------- /APCU/introplayer.h: -------------------------------------------------------------------------------- 1 | #ifndef __introplayer__ 2 | #define __introplayer__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include "introengine.h" 8 | #include "introwindow.h" 9 | 10 | // EFFECTS 11 | 12 | void InitEffect(float u1, float v1, float u2, float v2); 13 | void displayframe(int icurrentframe); 14 | float linear(float a, float b, float t); 15 | 16 | #endif -------------------------------------------------------------------------------- /APCU/music.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/APCU/music.obj -------------------------------------------------------------------------------- /APCU/player.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "fmod/minifmod.h" 4 | #include "samples.h" 5 | #include "synth.h" 6 | #include "player.h" 7 | #include "defines.h" 8 | 9 | ZAJCALLBACK cnsSynth_LoaderCallback=NULL; 10 | 11 | extern "C" unsigned char xm[]; 12 | extern "C" unsigned char patterns[]; 13 | 14 | int po=NUMPATTERNS*0x40*NUMCHANNELS; 15 | 16 | void * noteloadcallback(int pattern, int row, int channel) { 17 | unsigned char * note=new unsigned char[5]; 18 | unsigned char * ps=patterns+0x40*(pattern*NUMCHANNELS+channel) + row; 19 | 20 | for (int i=0; i<5; i++) note[i]=ps[po*i]; 21 | 22 | return note; 23 | } 24 | 25 | void delta_decode(char * d,int s) { 26 | unsigned char ov=0; 27 | for (int x=0; x < s; x++) { 28 | int nv = d[x] + ov; 29 | d[x] = ov = nv; 30 | } 31 | } 32 | 33 | void sampleloadcallback(void *buff, int lenbytes, int numbits, int instno, int sampno) { 34 | 35 | if (cnsSynth_LoaderCallback) cnsSynth_LoaderCallback(instno/(float)(NUMISTRUMENTS-1)+1); 36 | 37 | #ifdef _DEBUG 38 | char s[255]; 39 | sprintf(s,"sampledump%02d.smp",instno); 40 | 41 | FILE*f; 42 | if ( f=fopen(s,"rb") ) { 43 | fread(buff,lenbytes,1,f); 44 | fclose(f); 45 | } 46 | else { 47 | #endif 48 | CSample * sam=new CSample(synthdata[instno]); 49 | sam->GetFullSampleToXM((char*)buff,lenbytes); 50 | #ifdef _DEBUG 51 | 52 | f=fopen(s,"wb"); 53 | fwrite(buff,lenbytes,1,f); 54 | fclose(f); 55 | } 56 | #endif 57 | } 58 | 59 | 60 | int music_len=MUSICSIZE; 61 | int music_pos=64; 62 | char *music_data=(char *)xm; 63 | 64 | int memread(void *buffer, int size) 65 | { 66 | // if (music_pos + size >= music_len) size = music_len - music_pos; 67 | 68 | memcpy(buffer, (char *)music_data+music_pos, size); 69 | music_pos += size; 70 | 71 | return size; 72 | } 73 | 74 | void memseek(int pos, signed char mode) 75 | { 76 | if (mode == SEEK_SET) music_pos = pos; 77 | else if (mode == SEEK_CUR) music_pos += pos; 78 | // else if (mode == SEEK_END) music_pos = music_len + pos; 79 | // if (music_pos > music_len) music_pos = music_len; 80 | } 81 | 82 | int memtell() { return music_pos; } 83 | 84 | FMUSIC_MODULE * mod; 85 | int cnsSynth_LoadMusic() { 86 | #ifdef __DELTA 87 | delta_decode(music_data,MUSICSIZE); 88 | #endif 89 | // FSOUND_File_SetCallbacks(memread, memseek, memtell); 90 | FSOUND_File_Read=memread; 91 | FSOUND_File_Seek=memseek; 92 | FSOUND_File_Tell=memtell; 93 | 94 | if (!FSOUND_Init(44100)) return 0; 95 | mod=FMUSIC_LoadSong(sampleloadcallback,noteloadcallback); 96 | return 1; 97 | } 98 | 99 | void cnsSynth_PlayMusic() { FMUSIC_PlaySong(mod); } 100 | int cnsSynth_GetSync() { return FMUSIC_GetTime(); } 101 | -------------------------------------------------------------------------------- /APCU/player.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef __PLAYER_H__ 4 | #define __PLAYER_H__ 5 | typedef void (WINAPI *ZAJCALLBACK) (float); 6 | 7 | extern ZAJCALLBACK cnsSynth_LoaderCallback; 8 | 9 | int cnsSynth_LoadMusic(); 10 | void cnsSynth_PlayMusic(); 11 | int cnsSynth_GetSync(); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /APCU/precalc.h: -------------------------------------------------------------------------------- 1 | /* This file is generated with raw2h */ 2 | 3 | #ifndef _precalc_ 4 | #define _precalc_ 5 | 6 | unsigned char raw_precalc[] = 7 | { 8 | 2,1,0,11,7,0,0,35,9,39,0,1,0,10,82,69,67,79,78,83,73,68,69,82,7,2,0,35,9, 9 | 39,0,0,1,4,89,79,85,82,7,1,0,35,9,39,0,1,2,9,69,88,73,83,84,69,78,67,69,15, 10 | 0,2,0,0,0,0,0,0,15,2,2,0,0,0,0,0,0,15,1,2,0,0,0,0,0,0,4,3,0,0,0,0,0,0,0,30, 11 | 3,92,0,0,0,0,0,0,35,3,0,0,124,0,0,0,0,35,3,1,0,124,0,0,0,0,35,3,2,0,124,0, 12 | 0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,1,0,1,0,0,0,2,0,3,0,0,0,3,1,0,0,2,0,0,0,0,0, 13 | 255,255,255,128,191,128,191,128,191,1,0,0,0,0,76,76,76,128,63,128,63,128, 14 | 63,7,0,12,68,0,0,0,0,255,255,0,160,1,1,128,63,0,0,0,0,236,191,0,0,162,51, 15 | 128,191,141,62,0,0,128,63,162,51,0,0,12,68,0,0,1,0,255,255,1,160,1,1,128, 16 | 63,0,0,0,0,134,191,0,0,162,51,128,191,141,62,0,0,128,63,162,51,0,0,12,68, 17 | 0,0,2,0,255,255,2,160,1,1,128,63,0,0,0,0,48,191,0,0,162,51,128,191,141,62, 18 | 0,0,128,63,162,51,0,0,12,4,16,0,3,0,255,255,3,68,1,1,48,64,0,0,0,0,115,63, 19 | 0,0,12,50,222,189,0,0,0,0,128,63,162,51,0,0,12,108,0,0,4,0,255,255,0,45,128, 20 | 254,1,1,128,63,0,0,0,0,236,191,0,0,162,51,128,191,141,62,0,0,128,63,162,51, 21 | 0,0,12,108,0,0,5,0,255,255,1,45,128,254,1,1,128,63,0,0,0,0,134,191,0,0,162, 22 | 51,128,191,141,62,0,0,128,63,162,51,0,0,12,108,0,0,6,0,255,255,2,45,128,254, 23 | 1,1,128,63,0,0,0,0,48,191,0,0,162,51,128,191,141,62,0,0,128,63,162,51,0,0, 24 | 1,0,1,0,0,45,0,0,0,0,0,0,84,192,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,3,0,2,0,0,232, 25 | 3,0,0,0,59,0,127,2,163,1,0,0,59,0,127,2,163,1,0,0,0,0,0,232,3,0,0,232,3,1, 26 | 0,0,232,3,2,4,1,217,0,4,1,3,1,4,1,216,0,119,2,4,1,255,0,0,0,255,0,0,0,8,1, 27 | 0,0,1,0,0,232,3,3,4,1,217,0,4,1,3,1,4,1,216,0,119,2,4,1,255,0,0,0,255,0,0, 28 | 0,8,1,0,0, 29 | }; 30 | 31 | int raw_precalc_size=578; 32 | 33 | /* Total 578 bytes */ 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /APCU/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by SetupDialog.rc 4 | // 5 | #define IDD_SETUP 101 6 | #define IDI_ICON1 105 7 | #define IDI_ICON2 106 8 | #define IDC_RESOLUTION 1001 9 | #define IDC_FULLSCREEN 1002 10 | #define IDC_MUSIC 1003 11 | #define IDC_TEXDETAIL 1004 12 | #define IDC_ONTOP 1005 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 107 19 | #define _APS_NEXT_COMMAND_VALUE 40001 20 | #define _APS_NEXT_CONTROL_VALUE 1003 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /APCU/synth.h: -------------------------------------------------------------------------------- 1 | //#define SYNTH_EDITOR 2 | #pragma warning(disable : 4244) 3 | 4 | class CEnvelope { 5 | public: 6 | CEnvelope(); 7 | virtual ~CEnvelope(); 8 | 9 | float attack; 10 | float sustain; 11 | float release; 12 | float amplitude; 13 | // float base; 14 | float shape; 15 | // float fadeout; 16 | 17 | // void LoadRaw(char * raw); 18 | float GetEnv(int time); 19 | }; 20 | 21 | #pragma pack(1) 22 | 23 | typedef struct { 24 | float frequency; char frequency_env; 25 | float volume; char volume_env; 26 | float pw; char pw_env; 27 | char waveform; 28 | } OSCILLATOR; 29 | 30 | class CSample { 31 | public: 32 | #ifdef SYNTH_EDITOR 33 | CSample(); 34 | #endif 35 | CSample(char * raw); 36 | virtual ~CSample(); 37 | 38 | // int length; 39 | CEnvelope * env; int numenv; 40 | OSCILLATOR * osc; int numosc; 41 | 42 | char filter; 43 | char rezo; 44 | float cutoff; char cutoff_env; 45 | float resonance; char resonance_env; 46 | float resoamp; char resoamp_env; 47 | 48 | float clip_level; 49 | float gain; 50 | 51 | int length; 52 | 53 | #if 0 54 | int filter; 55 | int rezo; 56 | float cutoff; int cutoff_env; 57 | float resonance; int resonance_env; 58 | float resoamp; int resoamp_env; 59 | 60 | float clip_level; 61 | float gain; 62 | #endif 63 | 64 | char sequence[16]; CEnvelope * seqenv; 65 | 66 | void zVCF( float *out, float *in, int num, 67 | float &h0, float &h1, float rate, float bandwidth, int type ); 68 | 69 | void GetFullSample(float * buff, int len); 70 | void GetFullSampleToXM(char * buff, int len); 71 | }; 72 | 73 | #pragma pack() 74 | -------------------------------------------------------------------------------- /APCU/vectors.h: -------------------------------------------------------------------------------- 1 | #ifndef __vectors__ 2 | #define __vectors__ 3 | 4 | #include "math.h" 5 | #include 6 | 7 | union vector2 8 | { 9 | float a[2]; 10 | struct { float u,v; }; 11 | }; 12 | 13 | union vector3 14 | { 15 | float a[3]; 16 | struct { float x,y,z; }; 17 | }; 18 | 19 | union vector4 20 | { 21 | float a[4]; 22 | struct { float x,y,z,w; }; 23 | }; 24 | 25 | typedef float matrix[4][4]; 26 | typedef vector3 vector; 27 | 28 | vector3 v3_mults(vector3 v, float r); 29 | vector3 v3_make(float ax, float ay, float az); 30 | vector3 v3_normalize(vector3 v); 31 | vector3 v3_add( vector3 a, vector3 b); 32 | vector3 v3_sub( vector3 a, vector3 b); 33 | vector3 v3_cross(vector3 b, vector3 c); 34 | float v3_len(vector3 v); 35 | float v3_dot(vector3 a, vector3 b); 36 | 37 | void m_identity(matrix &m); 38 | void m_mults(matrix m, float r, matrix &d); 39 | void m_diadic3(vector3 v1, vector3 v2, matrix &m); 40 | void m_cross(vector3 v, matrix &m); 41 | void m_add(matrix m1, matrix m2, matrix &m); 42 | void m_mult(matrix m1, matrix m2, matrix &m); 43 | void m_xpose(float ax,float ay,float az,matrix &m); 44 | void m_rotate(float ax,float ay,float az,float phi,matrix &m); 45 | void m_scale(float ax, float ay, float az, matrix &m); 46 | void m_xformd(matrix m,vector3 v, vector3 &d); 47 | void m_xform3(matrix m, vector3 v, vector3 &d); 48 | void m_zero(matrix &m); 49 | void m_trans(matrix &m); 50 | void m_invert(matrix m,matrix &dest); 51 | void m_revxpose(const matrix m, vector3 &v); 52 | void m_revscale(const matrix m, vector3 &v); 53 | void m_revrotate(const matrix m, vector3 &v, float &phi); 54 | float m_signedsubdet(matrix m, int i, int j); 55 | float m_det(matrix m); 56 | 57 | #endif -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/asm.bat: -------------------------------------------------------------------------------- 1 | nasmw.exe -f win32 music.asm -o music.obj -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/ct.min: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Binary/ct.min -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/ct_nogreetz.min: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Binary/ct_nogreetz.min -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/ctpre.min: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Binary/ctpre.min -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/music.asm: -------------------------------------------------------------------------------- 1 | ;---------------------------------------- 2 | %macro include_binary 2 3 | global %1 4 | %1 incbin %2 5 | %1end: 6 | global %1_size 7 | %1_size dd %1end - %1 8 | %endmacro 9 | ;---------------------------------------- 10 | 11 | section .data 12 | 13 | include_binary _music, "music.mvm" 14 | 15 | -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/music.mvm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Binary/music.mvm -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/music.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Binary/music.obj -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/p.bat: -------------------------------------------------------------------------------- 1 | raw2h %1 project.h 2 | del ..\data\project.h 3 | move project.h ..\data\project.h -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Binary/precalc.bat: -------------------------------------------------------------------------------- 1 | raw2h %1 precalc.h 2 | del ..\data\precalc.h 3 | move precalc.h ..\data\precalc.h -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Data/music.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Data/music.obj -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/Data/release.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/Data/release.ico -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/SetupDialog.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/SetupDialog.aps -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/SetupDialog.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | typedef struct { 7 | int fullscreen; 8 | int music; 9 | DEVMODE mode; 10 | int vsync; 11 | int alwaysontop; 12 | float AspectRatio; 13 | 14 | int cancel; 15 | } SETUPCFG; 16 | 17 | extern SETUPCFG setupcfg; 18 | 19 | int OpenSetupDialog(HINSTANCE hInstance); -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/aDDict2Engine.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include "SetupDialog.h" 7 | #include "WindowHandler.h" 8 | #include "Parser.h" 9 | #include "mvx_lite.h" 10 | #include "EventHandler.h" 11 | 12 | -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/aDDict2Engine.rc: -------------------------------------------------------------------------------- 1 | #define ADDICTICON 101 2 | ADDICTICON ICON addict.ico 3 | -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/aDDict2Engine.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aDDict2Engine", "aDDict2Engine.vcxproj", "{3DE3F436-0185-1937-DD78-892F8E7ED8D0}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {3DE3F436-0185-1937-DD78-892F8E7ED8D0}.Debug|Win32.ActiveCfg = Release|Win32 12 | {3DE3F436-0185-1937-DD78-892F8E7ED8D0}.Debug|Win32.Build.0 = Release|Win32 13 | {3DE3F436-0185-1937-DD78-892F8E7ED8D0}.Release|Win32.ActiveCfg = Debug|Win32 14 | {3DE3F436-0185-1937-DD78-892F8E7ED8D0}.Release|Win32.Build.0 = Debug|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | GlobalSection(DPCodeReviewSolutionGUID) = preSolution 20 | DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000} 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/aDDict2Engine.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/dsound.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/dsound.lib -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/includelist.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define INCLUDE_TEX_Envmap 4 | //#define INCLUDE_TEX_Plasma 5 | #define INCLUDE_TEX_Map 6 | #define INCLUDE_TEX_Blur 7 | #define INCLUDE_TEX_DirBlur 8 | #define INCLUDE_TEX_Text 9 | #define INCLUDE_TEX_SubPlasma 10 | #define INCLUDE_TEX_FractalPlasma 11 | #define INCLUDE_TEX_Colorize 12 | #define INCLUDE_TEX_Shade 13 | #define INCLUDE_TEX_Brightness 14 | #define INCLUDE_TEX_Copy 15 | #define INCLUDE_TEX_Cells 16 | #define INCLUDE_TEX_Twirl 17 | //#define INCLUDE_TEX_SineDist 18 | //#define INCLUDE_TEX_Mix 19 | #define INCLUDE_TEX_MixMap 20 | //#define INCLUDE_TEX_Scale 21 | //#define INCLUDE_TEX_SineColor 22 | //#define INCLUDE_TEX_Max 23 | //#define INCLUDE_TEX_HSV 24 | //#define INCLUDE_TEX_Emboss 25 | #define INCLUDE_TEX_Invert 26 | #define INCLUDE_TEX_Glass 27 | //#define INCLUDE_TEX_Pixelize 28 | #define INCLUDE_TEX_Offset 29 | #define INCLUDE_TEX_Crystalize 30 | //#define INCLUDE_TEX_Rectangle 31 | #define INCLUDE_TEX_Circle 32 | #define INCLUDE_TEX_Contrast 33 | #define INCLUDE_TEX_MakeMaterial 34 | #define INCLUDE_TEX_Gradient 35 | #define INCLUDE_TEX_Rotozoom 36 | #define INCLUDE_TEX_ChamferRectangle 37 | //#define INCLUDE_TEX_Dots 38 | #define INCLUDE_TEX_Jpeg 39 | //#define INCLUDE_TEX_FractalPlasmaOld 40 | 41 | 42 | #define INCLUDE_OBJ_BOX 43 | #define INCLUDE_OBJ_SPHERE 44 | #define INCLUDE_OBJ_CYLINDER 45 | #define INCLUDE_OBJ_CONE 46 | #define INCLUDE_OBJ_PLANE 47 | #define INCLUDE_OBJ_ARC 48 | //#define INCLUDE_OBJ_LINE 49 | #define INCLUDE_OBJ_LOFT 50 | //#define INCLUDE_OBJ_ICOSAEDER 51 | //#define INCLUDE_OBJ_DODECAEDER 52 | //#define INCLUDE_OBJ_CIRCLE 53 | #define INCLUDE_OBJ_CLONE 54 | //#define INCLUDE_OBJ_STORED 55 | //#define INCLUDE_OBJ_FUR 56 | //#define INCLUDE_OBJ_SUPERSHAPE 57 | 58 | #define INCLUDE_MESHSMOOTH 59 | 60 | #define INCLUDE_OBJ_MAPXFORM 61 | #define INCLUDE_OBJ_LINEARSMOOTH 62 | #define INCLUDE_OBJ_BUTTERFLYSMOOTH 63 | #define INCLUDE_OBJ_MESHBLUR 64 | 65 | 66 | #define INCLUDE_PARTICLE_ENGINE 67 | 68 | //#define INCLUDE_WRL_DUMMY 69 | #define INCLUDE_WRL_SCENE 70 | #define INCLUDE_WRL_SUBSCENE 71 | #define INCLUDE_WRL_SPHEREEMITTER 72 | #define INCLUDE_WRL_CUBEEMITTER 73 | //#define INCLUDE_WRL_CYLINDEREMITTER 74 | //#define INCLUDE_WRL_PLANEDEFLECTOR 75 | //#define INCLUDE_WRL_SPHEREDEFLECTOR 76 | #define INCLUDE_WRL_GRAVITY 77 | 78 | 79 | #define INCLUDE_EVENT_NOEFFECT 80 | #define INCLUDE_EVENT_2DLAYER 81 | #define INCLUDE_EVENT_PARTICLECALC 82 | #define INCLUDE_EVENT_CLEAR 83 | #define INCLUDE_EVENT_RENDERTOTEXTURE 84 | #define INCLUDE_EVENT_FEEDBACK 85 | #define INCLUDE_EVENT_BLUR 86 | #define INCLUDE_EVENT_3DSCENE 87 | //#define INCLUDE_EVENT_PARTICLERESET 88 | #define INCLUDE_EVENT_CONTRAST 89 | //#define INCLUDE_EVENT_FUNKENDSCROLL 90 | //#define INCLUDE_EVENT_CRYSTALIZE 91 | #define INCLUDE_EVENT_GRIDFILLER 92 | //#define INCLUDE_EVENT_CAVE 93 | #define INCLUDE_EVENT_CAMSHAKE 94 | #define INCLUDE_EVENT_MRCEFFECT 95 | #define INCLUDE_EVENT_FEEDBACK2 96 | -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/mvxPlayerLib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/ChaosTheory/mvxPlayerLib.lib -------------------------------------------------------------------------------- /ChaosTheory/ChaosTheory/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by SetupDialog.rc 4 | // 5 | #define IDD_SETUP 101 6 | #define IDI_ICON1 105 7 | #define IDI_ICON2 107 8 | #define IDC_RESOLUTION 1001 9 | #define IDC_FULLSCREEN 1002 10 | #define IDC_MUSIC 1003 11 | #define IDC_TEXDETAIL 1004 12 | #define IDC_ASPECTRATIO 1004 13 | #define IDC_ONTOP 1005 14 | #define IDC_VSYNC 1006 15 | #define IDC_ALTERNATEASPECT 1007 16 | #define IDC_TEXXXXT 1008 17 | 18 | // Next default values for new objects 19 | // 20 | #ifdef APSTUDIO_INVOKED 21 | #ifndef APSTUDIO_READONLY_SYMBOLS 22 | #define _APS_NEXT_RESOURCE_VALUE 109 23 | #define _APS_NEXT_COMMAND_VALUE 40001 24 | #define _APS_NEXT_CONTROL_VALUE 1009 25 | #define _APS_NEXT_SYMED_VALUE 101 26 | #endif 27 | #endif 28 | -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/AdvancedMesh.h: -------------------------------------------------------------------------------- 1 | #pragma once -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/EventHandler.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "WindowHandler.h" 4 | #include "TexGen.h" 5 | #include "3DEngine.h" 6 | #include "IntroEditorEffects.h" 7 | 8 | struct EVENT 9 | { 10 | int StartFrame,EndFrame; 11 | int EventType; 12 | int Pass; 13 | int sx1,sy1,sx2,sy2; 14 | int ex1,ey1,ex2,ey2; 15 | void *EffectData; 16 | bool OnScreenInLastFrame; 17 | EFFECTCALLBACK Effect; 18 | #ifdef MINIMALTWEAKER 19 | bool Changed; 20 | #endif 21 | }; 22 | 23 | #ifdef MINIMALTWEAKER 24 | extern int MaxPass; 25 | #endif 26 | 27 | extern float AspectRatio; 28 | extern bool CropAspect; 29 | 30 | void glErrorCheck(); 31 | void DisplayFrame(int Frame, MATERIAL *MaterialList, SCENE *SceneList, WORLD *WorldList, EVENT *EventList, int EventNum); 32 | -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/ObjectGenerators.h: -------------------------------------------------------------------------------- 1 | #ifndef __OBJECTGENERATORS__ 2 | #define __OBJECTGENERATORS__ 3 | 4 | #include "vectors.h" 5 | #include "3dengine.h" 6 | #include "includelist.h" 7 | 8 | #ifdef INCLUDE_OBJ_BOX 9 | #define aDDict_BOX 0 10 | #endif 11 | #ifdef INCLUDE_OBJ_SPHERE 12 | #define aDDict_SPHERE 1 13 | #endif 14 | #ifdef INCLUDE_OBJ_CYLINDER 15 | #define aDDict_CYLINDER 2 16 | #endif 17 | #ifdef INCLUDE_OBJ_CONE 18 | #define aDDict_CONE 3 19 | #endif 20 | #ifdef INCLUDE_OBJ_PLANE 21 | #define aDDict_PLANE 4 22 | #endif 23 | #ifdef INCLUDE_OBJ_ARC 24 | #define aDDict_ARC 5 25 | #endif 26 | #ifdef INCLUDE_OBJ_LINE 27 | #define aDDict_LINE 6 28 | #endif 29 | #ifdef INCLUDE_OBJ_LOFT 30 | #define aDDict_LOFT 7 31 | #endif 32 | #ifdef INCLUDE_OBJ_ICOSAEDER 33 | #define aDDict_ICOSAEDER 8 34 | #endif 35 | #ifdef INCLUDE_OBJ_DODECAEDER 36 | #define aDDict_DODECAEDER 9 37 | #endif 38 | #ifdef INCLUDE_OBJ_CIRCLE 39 | #define aDDict_CIRCLE 10 40 | #endif 41 | #ifdef INCLUDE_OBJ_CLONE 42 | #define aDDict_CLONE 11 43 | #endif 44 | #ifdef INCLUDE_OBJ_STORED 45 | #define aDDict_STORED 12 46 | #endif 47 | #ifdef INCLUDE_OBJ_FUR 48 | #define aDDict_FUR 13 49 | #endif 50 | 51 | #ifdef INCLUDE_OBJ_SUPERSHAPE 52 | #define aDDict_SUPERSHAPE 14 53 | #endif 54 | 55 | #ifdef INCLUDE_OBJ_MAPXFORM 56 | #define aDDict_MAPXFORM 100 57 | #endif 58 | 59 | #ifdef INCLUDE_MESHSMOOTH 60 | #ifdef INCLUDE_OBJ_LINEARSMOOTH 61 | #define aDDict_LINEARSMOOTH 101 62 | #endif 63 | #ifdef INCLUDE_OBJ_BUTTERFLYSMOOTH 64 | #define aDDict_BUTTERFLYSMOOTH 102 65 | #endif 66 | #endif 67 | #ifdef INCLUDE_OBJ_MESHBLUR 68 | #define aDDict_MESHBLUR 103 69 | #endif 70 | 71 | #ifdef INCLUDE_OBJ_MAPXFORM 72 | void CalculateMapTransform(int MapXformType, int Color, MATRIX MXMatrix, OBJECT *, VECTOR3, VECTOR3, VECTOR3, float); 73 | #endif 74 | void GeneratePrimitive(OBJECT *Object); 75 | 76 | #endif -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/Parser.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "WindowHandler.h" 3 | #include "TexGen.h" 4 | #include "3DEngine.h" 5 | #include "ObjectGenerators.h" 6 | #include "IntroEditorEffects.h" 7 | #include "EventHandler.h" 8 | 9 | extern bool DisplayPrecalcAnim; 10 | 11 | extern int pEventNum; 12 | extern MATERIAL *pMaterialList; 13 | extern SCENE *pSceneList; 14 | extern WORLD *pWorldList; 15 | extern EVENT *pEventList; 16 | extern PSelect *pPolySelectList; 17 | 18 | struct OBJECTDATA 19 | { 20 | unsigned Wireframe :1, 21 | NormalsInverted : 1, 22 | XSwap :1, 23 | YSwap :1, 24 | Swap :1, 25 | Zmask :1, 26 | AEpsilon :1, 27 | 28 | SRCBlend :4, 29 | DSTBlend :3, 30 | 31 | Textured :1, 32 | TexSlot :3, 33 | Envmapped :1, 34 | EnvSlot :3, 35 | Shading :2, 36 | 37 | XTile :1, 38 | YTile :1, 39 | Offx :1, 40 | Offy :1, 41 | Red :1, 42 | Green :1, 43 | Blue :1, 44 | Alpha :1; 45 | }; //32 bit 46 | 47 | #pragma pack(1) 48 | 49 | struct OBJECTDATA2 50 | { 51 | unsigned BackFace :1, 52 | BackFront : 1, 53 | Orientation:1, 54 | Position:1; 55 | }; //4 bit 56 | 57 | #pragma pack() 58 | 59 | struct WORLDOBJECTDATA 60 | { 61 | unsigned Posx :1, 62 | Posy :1, 63 | Posz :1, 64 | Sclx :1, 65 | Scly :1, 66 | Sclz :1, 67 | Quat :1, 68 | EmitterData: 1, 69 | 70 | //innen emitter data csak 71 | 72 | SRCBlend :4, 73 | DSTBlend :3, 74 | 75 | Textured :1, 76 | TexSlot :3, 77 | Tail :1, 78 | Head :1, 79 | ObjectHead:1, 80 | 81 | TailRes1 :4, 82 | TailRes2 :4; 83 | }; //31 bit 84 | 85 | extern int SceneNum; 86 | extern int PolySelNum; 87 | extern int WorldNum; 88 | 89 | extern GLuint SRCBlends[]; 90 | extern GLuint DSTBlends[]; 91 | 92 | extern int eventsizes[]; 93 | void InitTextureBuffer(); 94 | 95 | int LoadDataFile(void **Data, MATERIAL **MaterialList, PSelect **PolySelections, SCENE **SceneList, WORLD **WorldList, EVENT **EventList, int LOD); 96 | //void ImportTextures(void **f, MATERIAL **MaterialList); 97 | -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/ParticleEngine.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "vectors.h" 3 | #include "3dEngine.h" 4 | 5 | class SCENE; 6 | 7 | struct PARTICLE 8 | { 9 | VECTOR3 Position,LastPos,DisplayPos,DisplayPos2; 10 | VECTOR3 Speed; 11 | int TailCnt,TailCnt2; 12 | int Age,StartAge; 13 | bool Aging; 14 | bool Active; 15 | unsigned char Color1[5],Color2[5]; 16 | VECTOR3 *Tail; 17 | float Rotation,RotChaos; 18 | float Size; 19 | }; 20 | 21 | struct PARTICLEVECTOR 22 | { 23 | //GL_T2F_C4UB_V3F 24 | float u,v; 25 | RGBA col; 26 | VECTOR3 Pos; 27 | }; 28 | 29 | struct EMITTERDATA 30 | { 31 | int DefaultAge,AgeChaos; 32 | float ParticlesPerFrame; 33 | float ParticleNumBuffer; 34 | float d; 35 | VECTOR3 n; 36 | 37 | PARTICLE *Particles; 38 | int MaxParticles; 39 | 40 | int LastFrameChecked; 41 | 42 | bool Head,Tail,ObjectHead; 43 | unsigned char TailLength,TailLength2; 44 | SCENE *ObjectHeadScene; 45 | int ObjectHeadSceneID; 46 | GLuint HeadMaterial; 47 | float Color1[5], Color2[5]; 48 | float Param1, Param2; 49 | float Size; 50 | 51 | float CamFade,Rotspeed,RotChaos; 52 | float Speed,SpeedChaos,DirChaos; 53 | VECTOR3 Dir; 54 | 55 | bool RandRotate,FixedUp; 56 | }; 57 | 58 | struct PARTICLESORTINFO 59 | { 60 | float Distance; 61 | int ParticleID; 62 | }; 63 | -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/Splines.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define aDDict_NONE 0 4 | #define aDDict_LINEAR 1 5 | #define aDDict_HERMITE 2 6 | #define aDDict_BEZIER 3 7 | #define aDDict_CATMULL 4 8 | #define aDDict_SINE 5 9 | #define aDDict_SAW 6 10 | #define aDDict_SQUARE 7 11 | 12 | struct Key 13 | { 14 | float Value; 15 | float Time; 16 | float an,bn; 17 | }; 18 | 19 | class SPLINE 20 | { 21 | public: 22 | int KeyNum; 23 | int KeyCapacity; 24 | Key *Keys; 25 | 26 | bool Loop; 27 | float LoopStart,LoopEnd; 28 | int Interpolation; 29 | 30 | //void AddKey(float Value, float Time); 31 | float GetInterpolatedValue(float Time); 32 | void InitVectors(); 33 | float GetVector(unsigned char sel, int n); 34 | }; -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/Vectors.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include "math.h" 5 | #include 6 | 7 | union VECTOR2 8 | { 9 | float a[2]; 10 | struct { float x,y; }; 11 | struct { float u,v; }; 12 | }; 13 | 14 | union VECTOR3 15 | { 16 | float a[3]; 17 | struct { float x,y,z; }; 18 | }; 19 | 20 | struct QUATERNION 21 | { 22 | VECTOR3 v; 23 | float s; 24 | }; 25 | 26 | struct RST 27 | { 28 | VECTOR3 Pos; 29 | VECTOR3 Rot; 30 | VECTOR3 Scale; 31 | QUATERNION Quaternion; 32 | }; 33 | 34 | typedef float MATRIX[4][4]; 35 | 36 | VECTOR3 V3_Make(float x, float y, float z); 37 | 38 | VECTOR3 V3_Add(VECTOR3 a, VECTOR3 b); 39 | VECTOR3 V3_Sub(VECTOR3 a, VECTOR3 b); 40 | VECTOR3 V3_Mults(VECTOR3 a, float b); 41 | VECTOR3 V3_Cross(VECTOR3 b, VECTOR3 c); 42 | float V3_Dot(VECTOR3 a, VECTOR3 b); 43 | 44 | float V3_Length(VECTOR3 a); 45 | VECTOR3 V3_Normalize(VECTOR3 a); 46 | 47 | void AngleAxis2Quaternion(float x, float y, float z, float phi, QUATERNION &q); 48 | QUATERNION Q_Slerp(QUATERNION q1,QUATERNION q2,float t); 49 | QUATERNION Q_Mult(QUATERNION a,QUATERNION b); 50 | QUATERNION Q_Normalize(QUATERNION a); 51 | 52 | void M_Identity(MATRIX &m); 53 | 54 | void M_XPose(float x, float y, float z, MATRIX &m); 55 | void M_Scale(float x, float y, float z, MATRIX &m); 56 | void M_Rotate(float ax,float ay,float az,float phi,MATRIX &m); 57 | void M_Skew(float ax, float ay, float az, MATRIX &m); 58 | void M_Quaternion(QUATERNION q,MATRIX &m); 59 | 60 | void M_Mult(MATRIX m1, MATRIX m2, MATRIX &m); 61 | 62 | void M_Xformd(MATRIX m, VECTOR3 v, VECTOR3 &d); 63 | void M_Xform3(MATRIX m, VECTOR3 v, VECTOR3 &d); 64 | void M_Invert(MATRIX &mat); 65 | void M_Transpose(MATRIX &mat); 66 | 67 | void M_RevXpose(const MATRIX m, VECTOR3 &v); 68 | void M_RevScale(const MATRIX m, VECTOR3 &v); 69 | void M_RevRotate(const MATRIX m, VECTOR3 &v, float &phi); 70 | 71 | float LinearInterpolate(float Min, float Max, float Pos); 72 | float BSplineInterpolate(float p1,float p2,float p3,float p4,float t); 73 | 74 | float distRayPlane(VECTOR3 vRayOrigin,VECTOR3 vnRayVector,VECTOR3 vnPlaneNormal,float planeD); 75 | void RST2Matrix(RST *a,MATRIX &m); 76 | 77 | float Random(); 78 | class GeCCo_Rand 79 | { 80 | unsigned int Seed; 81 | public: 82 | GeCCo_Rand() 83 | { 84 | srand(1); 85 | } 86 | 87 | void srand(unsigned int s) 88 | { 89 | Seed=s; 90 | } 91 | int rand() 92 | { 93 | Seed=Seed = Seed * 214013L + 2531011L; 94 | return(((Seed) >> 16) & 0x7fff); 95 | } 96 | float frand() 97 | { 98 | int r=rand(); 99 | return r/32767.0f; 100 | } 101 | int rand(int r) 102 | { 103 | return max(0,min(r-1,(int)(frand()*r))); 104 | } 105 | }; 106 | //extern GeCCo_Rand rnd; 107 | -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/WindowHandler.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include "SetupDialog.h" 5 | #include 6 | #include 7 | 8 | #pragma comment(lib,"opengl32.lib") 9 | #pragma comment(lib,"glu32.lib") 10 | 11 | extern HDC hDC; 12 | extern HGLRC hRC; 13 | extern HWND hWnd; 14 | extern HINSTANCE hInstance; 15 | 16 | extern MSG msg; 17 | 18 | extern bool Keys[256]; 19 | extern bool Active; 20 | extern bool Done; 21 | 22 | extern int XRes,YRes; 23 | 24 | void Intro_CreateWindow(char* Title, DEVMODE m, bool FullScreenFlag, HICON Icon, bool); 25 | void Intro_DestroyWindow(bool); 26 | void SwitchTo2D(); 27 | 28 | //void WriteDebug(const char *fmt, ...); 29 | 30 | #ifdef MINIMALTWEAKER 31 | 32 | extern int XRes,YRes,mx,my,lx,ly,rx,ry,mbx,mby,wheel,fwKeys,Wheel; 33 | extern bool LeftShift,LeftCtrl,RightShift,RightCtrl,MidShift,MidCtrl; 34 | extern bool LeftButton,RightButton,MiddleButton; 35 | 36 | bool MouseInWindow( float x1,float y1,float x2,float y2); 37 | bool MouseInWindow( int x1,int y1,int x2,int y2); 38 | bool LeftClickInWindow( float x1,float y1,float x2,float y2); 39 | bool LeftClickInWindow( int x1,int y1,int x2,int y2); 40 | bool RightClickInWindow( float x1,float y1,float x2,float y2); 41 | bool RightClickInWindow( int x1,int y1,int x2,int y2); 42 | bool MidClickInWindow( float x1,float y1,float x2,float y2); 43 | bool MidClickInWindow( int x1,int y1,int x2,int y2); 44 | 45 | void WaitLeftButtonRelease(); 46 | void WaitMiddleButtonRelease(); 47 | void WaitRightButtonRelease(); 48 | #endif -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/cubes.h: -------------------------------------------------------------------------------- 1 | #ifndef __cubes__ 2 | #define __cubes__ 3 | 4 | #include "Vectors.h" 5 | 6 | struct TRIANGLE 7 | { 8 | VECTOR3 p[3]; 9 | VECTOR3 n[3]; 10 | }; 11 | 12 | struct GRIDCELL 13 | { 14 | VECTOR3 p[8]; 15 | VECTOR3 n[8]; 16 | float val[8]; 17 | }; 18 | 19 | VECTOR3 VertexInterp(float isolevel,VECTOR3 p1,VECTOR3 p2,float valp1,float valp2); 20 | int Polygonise(GRIDCELL grid,float isolevel,TRIANGLE *triangles); 21 | 22 | 23 | #endif -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/mvx_lite.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ChaosTheory/MinimalEngine/mvx_lite.h -------------------------------------------------------------------------------- /ChaosTheory/MinimalEngine/writer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include "IncludeList.h" 7 | 8 | #define WRITER_STYLE_BOLD 0x00000001 9 | #define WRITER_STYLE_ITALIC 0x00000002 10 | 11 | class CWriter { 12 | public: 13 | CWriter(); 14 | // virtual ~CWriter(void); 15 | 16 | // void Upload(); 17 | 18 | // void PutChar(float,float,int,char); 19 | void Print(float,float,float,float,float,char*); 20 | #ifdef MINIMALTWEAKER 21 | void Printf(float x1,float y1,float x2,float y2,float size,const char *fmt, ...); 22 | #endif 23 | 24 | HFONT font; 25 | unsigned int * buffer; 26 | 27 | float texcoordu1[256]; 28 | float texcoordu2[256]; 29 | float texcoordv1[256]; 30 | float texcoordv2[256]; 31 | 32 | GLuint tex; 33 | }; -------------------------------------------------------------------------------- /ProjectGenesis/IntroWindow.h: -------------------------------------------------------------------------------- 1 | #ifndef __IntroWindow__ 2 | #define __IntroWindow__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | extern HDC hDC; 10 | extern HGLRC hRC; 11 | extern HWND hWnd; 12 | extern HINSTANCE hInstance; 13 | 14 | extern bool keys[256]; 15 | extern bool active; 16 | 17 | extern bool done; 18 | extern bool mode3d; 19 | 20 | extern GLuint base,basesmall; 21 | extern MSG msg; 22 | 23 | extern int xres,yres; 24 | 25 | GLvoid KillGLWindow(GLvoid); 26 | LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 27 | BOOL Intro_CreateWindow(char* title, int width, int height, int bits, bool fullscreenflag, HICON icon, bool aontop); 28 | void switchto2d(); 29 | 30 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/SetupDialog.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "SetupDialog.h" 3 | #include "resource.h" 4 | 5 | SETUPCFG setupcfg; 6 | 7 | typedef struct { 8 | int w,h; 9 | } RES; 10 | 11 | RES ress[]={ 12 | { 320, 240}, 13 | { 400, 300}, 14 | { 512, 384}, 15 | { 640, 480}, 16 | { 800, 600}, 17 | {1024, 768}, 18 | }; 19 | 20 | BOOL CALLBACK DlgFunc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam){ 21 | switch ( uMsg ) { 22 | case WM_INITDIALOG: { 23 | int i; 24 | for (i=0; i 4 | #include 5 | 6 | typedef struct { 7 | int fullscreen; 8 | int music; 9 | int resolution; 10 | int texturedetail; 11 | int alwaysontop; 12 | 13 | int cancel; 14 | } SETUPCFG; 15 | 16 | extern SETUPCFG setupcfg; 17 | 18 | int OpenSetupDialog(HINSTANCE hInstance); -------------------------------------------------------------------------------- /ProjectGenesis/TexGen.h: -------------------------------------------------------------------------------- 1 | #ifndef __TexGen__ 2 | #define __TexGen__ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #define pi 3.141592654 10 | #define radtheta 0.017453292 11 | 12 | // I wonder why the effect IDs match with the ATG2 effect IDs... 13 | 14 | #define DD_fractal 1 15 | #define DD_plasma 2 16 | #define DD_cells 3 17 | #define DD_envmap 4 18 | #define DD_subplasm 5 19 | #define DD_clear 6 20 | #define DD_text 7 21 | 22 | #define DD_sindist 10 23 | #define DD_offset 11 24 | #define DD_twirl 12 25 | #define DD_blur 15 26 | #define DD_map 17 27 | #define DD_dirblur 18 28 | #define DD_xchng 20 29 | #define DD_copy 23 30 | #define DD_mix 24 31 | #define DD_mul 25 32 | #define DD_add 26 33 | #define DD_max 27 34 | #define DD_contrast 30 35 | #define DD_invert 31 36 | #define DD_shade 32 37 | #define DD_bright 33 38 | #define DD_sincol 34 39 | #define DD_scale 35 40 | #define DD_hsv 36 41 | #define DD_colorize 37 42 | #define DD_mixmap 38 43 | 44 | #define DD_emboss 39 45 | #define DD_stored 255 46 | 47 | typedef unsigned char byte; 48 | typedef union tRGBA { 49 | struct {byte r,g,b,a;}; 50 | byte cols[4]; 51 | 52 | } rgba; 53 | 54 | typedef struct hsv_ {float h,s,v;} hsv; 55 | 56 | typedef struct { 57 | char text[256]; 58 | } string; 59 | 60 | typedef union { 61 | struct { 62 | byte commandnumber, 63 | layer, 64 | datalayer1, 65 | datalayer2, 66 | param1, 67 | param2, 68 | param3, 69 | param4, 70 | param5; 71 | }; 72 | byte command[9]; 73 | 74 | 75 | } texturecommand; 76 | 77 | struct texture { 78 | byte commandnum; 79 | texturecommand commands[100]; 80 | rgba layers[4][256][256]; 81 | string texts[100]; 82 | texture *next; 83 | int ID; 84 | }; 85 | 86 | struct material { 87 | unsigned char texture; 88 | unsigned char layer; 89 | unsigned char alphatexture; 90 | unsigned char alphalayer; 91 | unsigned char alphamode; 92 | unsigned char number; 93 | GLuint handle; 94 | rgba image[256][256]; 95 | material *next; 96 | }; 97 | 98 | void inittexture(texture &t); 99 | void performcommand(texture &t, texturecommand c); 100 | void inittextureengine(); 101 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/Track.cpp: -------------------------------------------------------------------------------- 1 | #include "Track.h" 2 | 3 | #pragma warning(disable : 4244) 4 | 5 | ////////////////////////////////////////////////////////////////////// 6 | // Construction/Destruction 7 | ////////////////////////////////////////////////////////////////////// 8 | 9 | // Code done by Gargaj 10 | 11 | #define TENS 0.0 12 | #define BIAS 0.0 13 | #define CONT 0.0 14 | #define LOOP 1 15 | #define MAXKEY 9999 16 | 17 | CTrack::CTrack() 18 | { 19 | } 20 | 21 | CTrack::~CTrack() 22 | { 23 | 24 | } 25 | 26 | float hermite(float p1,float p2,float r1,float r2,float t) { 27 | return p1*( 2.0*(t*t*t)-3.0*(t*t)+1.0)+ 28 | r1*( (t*t*t)-2.0*(t*t)+t )+ 29 | p2*(-2.0*(t*t*t)+3.0*(t*t) )+ 30 | r2*( (t*t*t)- (t*t) ); 31 | } 32 | 33 | void CTrack::InitVectors() { 34 | int i; 35 | if (numkey==1) return; 36 | for (i=0; i=frame) && (keys[0].frame>=0))) 109 | return keys[0].data; 110 | 111 | for (x=0; x 5 | #include 6 | #include 7 | #include "vectors.h" 8 | 9 | void initcloth(); 10 | void calculatecloth(); 11 | void drawcloth(); 12 | 13 | 14 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/defines.h: -------------------------------------------------------------------------------- 1 | // itt egyelore csak ez van 2 | 3 | #define MUSICSIZE 12759 4 | #define NUMCHANNELS 18 5 | #define NUMPATTERNS 77 6 | #define NUMISTRUMENTS 41 7 | -------------------------------------------------------------------------------- /ProjectGenesis/fmod/Mixer.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_H_ 14 | #define _MIXER_H_ 15 | 16 | #define FSOUND_MIXDIR_FORWARDS 1 17 | #define FSOUND_MIXDIR_BACKWARDS 2 18 | 19 | #define FSOUND_OUTPUTBUFF_END 0 20 | #define FSOUND_SAMPLEBUFF_END 1 21 | #define FSOUND_VOLUMERAMP_END 2 22 | 23 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/fmod/minifmod.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MINIFMOD.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | //========================================================================================== 14 | // MINIFMOD Main header file. Copyright (c), FireLight Multimedia 2000. 15 | // Based on FMOD, copyright (c), FireLight Multimedia 2000. 16 | //========================================================================================== 17 | 18 | #ifndef _MINIFMOD_H_ 19 | #define _MINIFMOD_H_ 20 | 21 | //=============================================================================================== 22 | //= DEFINITIONS 23 | //=============================================================================================== 24 | 25 | //#define __EXCEPTION_HANDLER__ 26 | //#define __16BIT_SAMPLE_SUPPORT__ 27 | 28 | // fmod defined types 29 | typedef struct FMUSIC_MODULE FMUSIC_MODULE; 30 | 31 | //=============================================================================================== 32 | //= FUNCTION PROTOTYPES 33 | //=============================================================================================== 34 | 35 | //#include "music.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | // ================================== 42 | // Initialization / Global functions. 43 | // ================================== 44 | typedef void * (*NOTELOADCALLBACK)(int pattern, int row, int channel); 45 | typedef void (*SAMPLELOADCALLBACK)(void *buff, int lenbytes, int numbits, int instno, int sampno); 46 | //typedef void (*FMUSIC_CALLBACK)(FMUSIC_MODULE *mod, unsigned char param); 47 | 48 | // this must be called before FSOUND_Init! 49 | /* 50 | void FSOUND_File_SetCallbacks(int (*ReadCallback)(void *buffer, int size), 51 | void (*SeekCallback)(int pos, signed char mode), 52 | int (*TellCallback)() 53 | ); 54 | */ 55 | int (*FSOUND_File_Read)(void *buffer, int size); 56 | void (*FSOUND_File_Seek)(int pos, signed char mode); 57 | int (*FSOUND_File_Tell)(); 58 | 59 | signed char FSOUND_Init(int mixrate); 60 | void FSOUND_Close(); 61 | 62 | // ============================================================================================= 63 | // FMUSIC API 64 | // ============================================================================================= 65 | 66 | // Song management / playback functions. 67 | // ===================================== 68 | //FMUSIC_MODULE *mod; 69 | 70 | FMUSIC_MODULE * FMUSIC_LoadSong(SAMPLELOADCALLBACK sampleloadcallback, NOTELOADCALLBACK noteloadcallback); 71 | signed char FMUSIC_FreeSong(); 72 | signed char FMUSIC_PlaySong(FMUSIC_MODULE * mod); 73 | signed char FMUSIC_StopSong(); 74 | 75 | // Runtime song information. 76 | // ========================= 77 | int FMUSIC_GetOrder(); 78 | int FMUSIC_GetRow(); 79 | unsigned int FMUSIC_GetTime(); 80 | 81 | #ifdef __cplusplus 82 | } 83 | #endif 84 | 85 | #endif 86 | -------------------------------------------------------------------------------- /ProjectGenesis/fmod/mixer_clipcopy.c: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_CLIPCOPY.C */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #include "sound.h" 14 | 15 | static unsigned long mix_temp1 = 0; 16 | static const float mix_3times2pow51 = 3.0f * (float)(1L<<25) * (float)(1L<<26); 17 | 18 | /* 19 | [API] 20 | [ 21 | [DESCRIPTION] 22 | Size optimized version of the commented out clipper below 23 | 24 | [PARAMETERS] 25 | 26 | [RETURN_VALUE] 27 | 28 | [REMARKS] 29 | This uses an fadd trick and does 2 float to ints in about 8 cycles.. which is what just 1 30 | fistp would take normally.. note this is meant for p5 machines, as ppro has a 1cycle 31 | fistp which is faster. 32 | 33 | [SEE_ALSO] 34 | ] 35 | */ 36 | void FSOUND_MixerClipCopy_Float32(void *dest, void *src, long len) 37 | { 38 | int count; 39 | short *destptr = (short *)dest; 40 | float *srcptr = (float *)src; 41 | 42 | //if (len <=0 || !dest || !src) return; 43 | 44 | for (count=0; count 32767 ? 32767 : val); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /ProjectGenesis/fmod/mixer_clipcopy.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_CLIPCOPY.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_CLIPCOPY_H 14 | #define _MIXER_CLIPCOPY_H 15 | 16 | void FSOUND_MixerClipCopy_Float32(void *dest, void *src, int len); 17 | 18 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/fmod/mixer_fpu_ramp.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_FPU_RAMP.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_FPU_RAMP_H 14 | #define _MIXER_FPU_RAMP_H 15 | 16 | #define FSOUND_VOLUMERAMP_STEPS 128 // at 44.1khz 17 | 18 | void FSOUND_Mixer_FPU_Ramp(void *mixptr, int len, signed char returnaddress); 19 | 20 | extern unsigned int mix_volumerampsteps; 21 | extern float mix_1overvolumerampsteps; 22 | 23 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/fmod/system_memory.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* SYSTEM_MEMORY.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _SYSTEM_MEMORY_H_ 14 | #define _SYSTEM_MEMORY_H_ 15 | 16 | // include your system's header here 17 | #include 18 | 19 | // redefine here 20 | #define FSOUND_Memory_Free(_ptr) free(_ptr) 21 | #define FSOUND_Memory_Alloc(_len) calloc(_len, 1) 22 | #define FSOUND_Memory_Calloc(_len) calloc(_len, 1) 23 | #define FSOUND_Memory_Realloc(_ptr, _len) realloc(_ptr, _len) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /ProjectGenesis/intro.h: -------------------------------------------------------------------------------- 1 | #ifndef __intro__ 2 | #define __intro__ 3 | 4 | // ENGINE 5 | 6 | #include "player.h" 7 | #include 8 | #include 9 | #include 10 | #include "vectors.h" 11 | #include "introwindow.h" 12 | #include "introengine.h" 13 | #include "introinput.h" 14 | #include "introplayer.h" 15 | 16 | // EFFECTS 17 | 18 | #include "cloth.h" 19 | 20 | void __stdcall precalc(float f); 21 | 22 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/introgen.h: -------------------------------------------------------------------------------- 1 | #ifndef __introgen__ 2 | #define __introgen__ 3 | 4 | #include "vectors.h" 5 | #include "introengine.h" 6 | 7 | #define aDDict_box 1 8 | #define aDDict_sphere 3 9 | #define aDDict_hasab 6 10 | #define aDDict_cone 7 11 | #define aDDict_arc 9 12 | #define aDDict_loft 10 13 | #define aDDict_line 11 14 | #define aDDict_grid 12 15 | #define aDDict_clone 15 16 | 17 | #define aDDict_map 104 18 | 19 | void obj_generatenormals(object *o); 20 | void obj_counttexturecoordinates(object *o, int xr, int yr, int xoff, int yoff, bool swap, bool xswp, bool yswp); 21 | float getmappixel(vector2 t, int channel, bool nowrap); 22 | 23 | void obj_createprimitive(object *o, char primitive, int param1, int param2, int param3, int param4); 24 | 25 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/introgen.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "introgen", "introgen.vcxproj", "{80A5694C-3EEC-EF4B-BA61-DC75FE7FD94E}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {80A5694C-3EEC-EF4B-BA61-DC75FE7FD94E}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {80A5694C-3EEC-EF4B-BA61-DC75FE7FD94E}.Debug|Win32.Build.0 = Debug|Win32 13 | {80A5694C-3EEC-EF4B-BA61-DC75FE7FD94E}.Release|Win32.ActiveCfg = Release|Win32 14 | {80A5694C-3EEC-EF4B-BA61-DC75FE7FD94E}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /ProjectGenesis/introinput.h: -------------------------------------------------------------------------------- 1 | #ifndef __introinput__ 2 | #define __introinput__ 3 | 4 | #include 5 | #include "intro.h" 6 | #include "introengine.h" 7 | #include "introgen.h" 8 | 9 | struct camfield 10 | { 11 | unsigned fovwritten : 1, 12 | rollwritten: 1, 13 | eyexwritten : 1, 14 | eyeywritten : 1, 15 | eyezwritten : 1, 16 | targetxwritten: 1, 17 | targetywritten: 1, 18 | targetzwritten: 1; 19 | }; 20 | 21 | struct objfield 22 | { 23 | unsigned posx : 1, 24 | posy : 1, 25 | posz : 1, 26 | rotx : 1, 27 | roty : 1, 28 | rotz : 1, 29 | rota : 1, 30 | strx : 1, 31 | stry : 1, 32 | strz : 1, 33 | colr : 1, 34 | colg : 1, 35 | colb : 1, 36 | cola : 1; 37 | }; 38 | 39 | void loadprojectfile(unsigned char *file); 40 | 41 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/introplayer.h: -------------------------------------------------------------------------------- 1 | #ifndef __introplayer__ 2 | #define __introplayer__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include "introengine.h" 8 | #include "introwindow.h" 9 | 10 | // EFFECTS 11 | 12 | #include "cloth.h" 13 | 14 | void InitEffect(float u1, float v1, float u2, float v2); 15 | void displayframe(int icurrentframe); 16 | 17 | #endif -------------------------------------------------------------------------------- /ProjectGenesis/music.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/ProjectGenesis/music.obj -------------------------------------------------------------------------------- /ProjectGenesis/player.cpp: -------------------------------------------------------------------------------- 1 | // Code done by Gargaj 2 | 3 | #include 4 | #include 5 | #include "fmod/minifmod.h" 6 | #include "samples.h" 7 | #include "synth.h" 8 | #include "player.h" 9 | #include "defines.h" 10 | 11 | ZAJCALLBACK cnsSynth_LoaderCallback=NULL; 12 | 13 | extern "C" unsigned char xm[]; 14 | extern "C" unsigned char patterns[]; 15 | 16 | int po=NUMPATTERNS*0x40*NUMCHANNELS; 17 | 18 | void * noteloadcallback(int pattern, int row, int channel) { 19 | unsigned char * note=new unsigned char[5]; 20 | unsigned char * ps=patterns+0x40*(pattern*NUMCHANNELS+channel) + row; 21 | 22 | for (int i=0; i<5; i++) note[i]=ps[po*i]; 23 | 24 | return note; 25 | } 26 | 27 | void delta_decode(char * d,int s) { 28 | unsigned char ov=0; 29 | for (int x=0; x < s; x++) { 30 | int nv = d[x] + ov; 31 | d[x] = ov = nv; 32 | } 33 | } 34 | 35 | void sampleloadcallback(void *buff, int lenbytes, int numbits, int instno, int sampno) { 36 | 37 | if (cnsSynth_LoaderCallback) cnsSynth_LoaderCallback(instno/(float)(NUMISTRUMENTS-1)+1); 38 | 39 | CSample * sam=new CSample(synthdata[instno]); 40 | sam->GetFullSampleToXM((char*)buff,lenbytes); 41 | } 42 | 43 | 44 | int music_len=MUSICSIZE; 45 | int music_pos=64; 46 | char *music_data=(char *)xm; 47 | 48 | int memread(void *buffer, int size) 49 | { 50 | memcpy(buffer, (char *)music_data+music_pos, size); 51 | music_pos += size; 52 | 53 | return size; 54 | } 55 | 56 | void memseek(int pos, signed char mode) 57 | { 58 | if (mode == SEEK_SET) music_pos = pos; 59 | else if (mode == SEEK_CUR) music_pos += pos; 60 | } 61 | 62 | int memtell() { return music_pos; } 63 | 64 | FMUSIC_MODULE * mod; 65 | int cnsSynth_LoadMusic() { 66 | #ifdef __DELTA 67 | delta_decode(music_data,MUSICSIZE); 68 | #endif 69 | FSOUND_File_Read=memread; 70 | FSOUND_File_Seek=memseek; 71 | FSOUND_File_Tell=memtell; 72 | 73 | if (!FSOUND_Init(44100)) return 0; 74 | mod=FMUSIC_LoadSong(sampleloadcallback,noteloadcallback); 75 | return 1; 76 | } 77 | 78 | void cnsSynth_PlayMusic() { FMUSIC_PlaySong(mod); } 79 | int cnsSynth_GetSync() { return FMUSIC_GetTime(); } 80 | -------------------------------------------------------------------------------- /ProjectGenesis/player.h: -------------------------------------------------------------------------------- 1 | // Code done by Gargaj 2 | 3 | #include 4 | 5 | #ifndef __PLAYER_H__ 6 | #define __PLAYER_H__ 7 | typedef void (WINAPI *ZAJCALLBACK) (float); 8 | 9 | extern ZAJCALLBACK cnsSynth_LoaderCallback; 10 | 11 | int cnsSynth_LoadMusic(); 12 | void cnsSynth_PlayMusic(); 13 | int cnsSynth_GetSync(); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /ProjectGenesis/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by SetupDialog.rc 4 | // 5 | #define IDD_SETUP 101 6 | #define IDI_ICON1 105 7 | #define IDI_ICON2 106 8 | #define IDC_RESOLUTION 1001 9 | #define IDC_FULLSCREEN 1002 10 | #define IDC_MUSIC 1003 11 | #define IDC_TEXDETAIL 1004 12 | #define IDC_ONTOP 1005 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 107 19 | #define _APS_NEXT_COMMAND_VALUE 40001 20 | #define _APS_NEXT_CONTROL_VALUE 1003 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /ProjectGenesis/synth.h: -------------------------------------------------------------------------------- 1 | // Code done by Gargaj 2 | 3 | #pragma warning(disable : 4244) 4 | 5 | class CEnvelope { 6 | public: 7 | CEnvelope(); 8 | virtual ~CEnvelope(); 9 | 10 | float attack; 11 | float sustain; 12 | float release; 13 | float amplitude; 14 | float shape; 15 | float GetEnv(int time); 16 | }; 17 | 18 | #pragma pack(1) 19 | 20 | typedef struct { 21 | float frequency; char frequency_env; 22 | float volume; char volume_env; 23 | float pw; char pw_env; 24 | char waveform; 25 | } OSCILLATOR; 26 | 27 | class CSample { 28 | public: 29 | CSample(char * raw); 30 | virtual ~CSample(); 31 | 32 | CEnvelope * env; int numenv; 33 | OSCILLATOR * osc; int numosc; 34 | 35 | char filter; 36 | char rezo; 37 | float cutoff; char cutoff_env; 38 | float resonance; char resonance_env; 39 | float resoamp; char resoamp_env; 40 | 41 | float clip_level; 42 | float gain; 43 | 44 | int length; 45 | 46 | #if 0 47 | int filter; 48 | int rezo; 49 | float cutoff; int cutoff_env; 50 | float resonance; int resonance_env; 51 | float resoamp; int resoamp_env; 52 | 53 | float clip_level; 54 | float gain; 55 | #endif 56 | 57 | char sequence[16]; CEnvelope * seqenv; 58 | 59 | void zVCF( float *out, float *in, int num, 60 | float &h0, float &h1, float rate, float bandwidth, int type ); 61 | 62 | void GetFullSample(float * buff, int len); 63 | void GetFullSampleToXM(char * buff, int len); 64 | }; 65 | 66 | #pragma pack() 67 | -------------------------------------------------------------------------------- /ProjectGenesis/vectors.h: -------------------------------------------------------------------------------- 1 | #ifndef __vectors__ 2 | #define __vectors__ 3 | 4 | #include "math.h" 5 | #include 6 | 7 | union vector2 8 | { 9 | float a[2]; 10 | struct { float u,v; }; 11 | }; 12 | 13 | union vector3 14 | { 15 | float a[3]; 16 | struct { float x,y,z; }; 17 | }; 18 | 19 | union vector4 20 | { 21 | float a[4]; 22 | struct { float x,y,z,w; }; 23 | }; 24 | 25 | typedef float matrix[4][4]; 26 | typedef vector3 vector; 27 | 28 | vector3 v3_mults(vector3 v, float r); 29 | vector3 v3_make(float ax, float ay, float az); 30 | vector3 v3_normalize(vector3 v); 31 | vector3 v3_add( vector3 a, vector3 b); 32 | vector3 v3_sub( vector3 a, vector3 b); 33 | vector3 v3_cross(vector3 b, vector3 c); 34 | float v3_len(vector3 v); 35 | float v3_dot(vector3 a, vector3 b); 36 | 37 | void m_identity(matrix &m); 38 | void m_mults(matrix m, float r, matrix &d); 39 | void m_diadic3(vector3 v1, vector3 v2, matrix &m); 40 | void m_cross(vector3 v, matrix &m); 41 | void m_add(matrix m1, matrix m2, matrix &m); 42 | void m_mult(matrix m1, matrix m2, matrix &m); 43 | void m_xpose(float ax,float ay,float az,matrix &m); 44 | void m_rotate(float ax,float ay,float az,float phi,matrix &m); 45 | void m_scale(float ax, float ay, float az, matrix &m); 46 | void m_xformd(matrix m,vector3 v, vector3 &d); 47 | void m_xform3(matrix m, vector3 v, vector3 &d); 48 | void m_zero(matrix &m); 49 | void m_trans(matrix &m); 50 | void m_invert(matrix m,matrix &dest); 51 | void m_revxpose(const matrix m, vector3 &v); 52 | void m_revscale(const matrix m, vector3 &v); 53 | void m_revrotate(const matrix m, vector3 &v, float &phi); 54 | float m_signedsubdet(matrix m, int i, int j); 55 | float m_det(matrix m); 56 | 57 | #endif -------------------------------------------------------------------------------- /Readme.txt: -------------------------------------------------------------------------------- 1 | Inspired by the recent wave of source code releases and the upcoming 10th 2 | birthday of Conspiracy, we give you the tools used to produce the bulk of 3 | our releases. This pack contains the source code for all of our stuff up 4 | until Chaos Theory, including the tools and some of the intros themselves. 5 | 6 | Contents 7 | -aDDict: 8 | -The original aDDict tool used in Project Genesis and A Place 9 | Called Universe 10 | -aDDict2: 11 | -The tool used for everything up until Chaos Theory 12 | 13 | -APCU: 14 | -Buildable version of A Place Called Universe 15 | 16 | -ChaosTheory: 17 | -Buildable version of Chaos Theory. The rest of the aDDict2 intros 18 | can be built using this codebase if you feel like it. 19 | The includelist.h contains #ifdefs for parts of the engine required 20 | for the specific release, you can either uncomment all of it or 21 | generate a new file using the includelist command in the aDDict2 22 | console prompt. 23 | 24 | -ProjectGenesis: 25 | -Buildable version of Project Genesis 26 | 27 | All of the code has been fixed to work under VS2010, however keep in mind 28 | that most of this has been hacked beyond recognition and should be considered 29 | quite unstable code. 30 | 31 | Here follows a probably incomplete list of what has inspired parts of the code: 32 | -The ATG texture generator (Greetings to Ile ;) 33 | -An attempt at loading scenes from zoom3 (Hey AND ;) 34 | -A Kasparov scene loader (Sadly Elitegroup has perished) 35 | -Some of the filters used in PG and APCU: 36 | -http://www.musicdsp.org/showone.php?id=117 37 | -http://www.musicdsp.org/showone.php?id=27 38 | -Spline code 39 | http://debian.fmi.uni-sofia.bg/~sergei/cgsr/docs/splines.txt 40 | -A hacked to hell minifmod 41 | -Bass sound system 42 | -Fmod sound system -------------------------------------------------------------------------------- /aDDict/DDgui.h: -------------------------------------------------------------------------------- 1 | #ifndef __DDGUI__ 2 | #define __DDGUI__ 3 | 4 | #include "aDDict.h" 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "DDwindow.h" 10 | 11 | #define DDgui_LeftClick 1000 12 | #define DDgui_RightClick 1001 13 | #define DDgui_MidClick 1002 14 | #define DDgui_ReSize 2000 15 | #define DDgui_ToggleWire 2001 16 | 17 | //#define backgroundcol (float)0.07843,(float)0.14705,(float)0.25, (float)1.0 18 | #define backgroundcol 50.0f/255.0f,65.0f/255.0f,89.0f/255.0f,0 19 | /*#define col (float)0.31372,(float)0.58823,(float)1.0, (float)1.0 20 | #define col2 (float)0.10457,(float)0.19607,(float)0.33333,(float)1.0 21 | #define col3 (float)0.15686,(float)0.29411,(float)0.5, (float)1.0 22 | #define col4 (float)0.20915,(float)0.39215,(float)0.66666,(float)1.0 23 | #define buttontextcol (float)0.24132,(float)0.45248,(float)0.76923,(float)1.0*/ 24 | //#define buttontextlit (float)0.34509,(float)0.64705,(float)1.0, (float)1.0 25 | #define buttontextlit 157.0/256.0,174.0/256.0,205.0/256.0, (float)1.0 26 | //#define buttontexton (float)0.94117,(float)0.96470,(float)1.0, (float)1.0 27 | 28 | #define buttontextcol 1,1,1,1 29 | 30 | #define col 88.0f/127.0f,105.0f/127.0f,133.0f/127.0f,0 31 | #define col2 88.0f/511.0f,105.0f/511.0f,133.0f/511.0f,0 32 | #define col3 88.0f/255.0f,105.0f/255.0f,133.0f/255.0f,0 33 | #define col4 253.0f/255.0f,253.0f/255.0f,1,0 34 | 35 | #define buttontexton 52.0f/255.0f,52.0f/255.0f,59.0f/255.0f,0 36 | #define buttonhighlighted 104.0f/255.0f,133.0f/255.0f,179.0f/255.0f,0 37 | 38 | #define DD_Draw 0 39 | #define DD_Check 1 40 | #define DD_AfterCheck 2 41 | 42 | void line(float x1, float y1, float x2,float y2); 43 | void line(int x1, int y1, int x2,int y2); 44 | void specline(int x1, int y1, int x2,int y2, int time); 45 | void rectangle(float x1, float y1, float x2,float y2); 46 | void rectangle(int x1, int y1, int x2,int y2); 47 | void specrectangle(int x1, int y1, int x2,int y2, int time); 48 | //void specrectangle(float x1, float y1, float x2,float y2, int time); 49 | void quad(float x1, float y1, float x2,float y2); 50 | void quad(int x1, int y1, int x2,int y2); 51 | int button(int x1, int y1, int x2, int y2,char* text,int tx,int ty, GLuint font, bool lit, byte mode); 52 | int button(int x1, int y1, int x2, int y2,GLuint texture, double xs1, double ys1,double xs2, double ys2, bool lit, byte mode); 53 | void ValueBar(int x1,int y1,int x2,int y2,int mi,int ma,byte *value,char *s,int s1,int s2, GLuint font, byte mode); 54 | void ValueBar(int x1,int y1,int x2,int y2,int mi,int ma,int *value,char *s,int s1,int s2, GLuint font, byte mode); 55 | void ValueBar(int x1,int y1,int x2,int y2,float mi,float ma,float *value,char *s,int s1,int s2, GLuint font, byte mode); 56 | 57 | void ValueBar(int x1,int y1,int color,float mi,float ma,float skipper,float *value,char *s,int s1,int s2, GLuint font, byte mode); 58 | void ValueBar(int x1,int y1,int color,byte mi,byte ma,byte *value,char *s,int s1,int s2, GLuint font, byte mode); 59 | void ValueBar(int x1,int y1,int color,int mi,int ma,int *value,char *s,int s1,int s2, GLuint font, byte mode); 60 | 61 | void scroller(int x1,int y1,int x2,int y2,int buttonsize,int scrollsize,int itemnumber,int size,int &pos, int mode); 62 | void hscroller(int x1,int y1,int x2,int y2,int buttonsize,int scrollsize,int itemnumber,int size,int &pos, int mode); 63 | 64 | int RadioButton(int x1, int y1, bool &lit, char *text, int mode); 65 | 66 | char* readline(const char* windowheader,int x,int y,GLuint font,const char* def); 67 | 68 | void initGUI(); 69 | 70 | 71 | #endif -------------------------------------------------------------------------------- /aDDict/DDwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef __DDwin__ 2 | #define __DDwin__ 3 | 4 | //#include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | extern HDC hDC; 11 | extern HGLRC hRC; 12 | extern HWND hWnd; 13 | extern HINSTANCE hInstance; 14 | 15 | extern int mx,my,lx,ly,rx,ry,mbx,mby,wheel,fwKeys; 16 | extern bool leftbutton,rightbutton,middlebutton,lbuttonreleased,rbuttonreleased,mbuttonreleased; 17 | 18 | extern bool keys[256]; 19 | extern bool active; 20 | extern bool fullscreen; 21 | 22 | extern bool done; 23 | extern int window_xsize,window_ysize; 24 | 25 | struct tkey { 26 | byte key; 27 | tkey *next; 28 | }; 29 | 30 | extern tkey *keyboardbuffer; 31 | extern tkey *key; 32 | extern MSG msg; 33 | extern bool mode3d; 34 | 35 | extern GLuint base,basesmall,base2; 36 | 37 | LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 38 | GLvoid KillGLWindow(GLvoid); 39 | BOOL DD_CreateWindow(char* title, int width, int height, int bits, bool fullscreenflag, HICON icon); 40 | bool mouseinwindow( float x1,float y1,float x2,float y2); 41 | bool mouseinwindow( int x1,int y1,int x2,int y2); 42 | bool leftclickinwindow( float x1,float y1,float x2,float y2); 43 | bool leftclickinwindow( int x1,int y1,int x2,int y2); 44 | bool rightclickinwindow( float x1,float y1,float x2,float y2); 45 | bool rightclickinwindow( int x1,int y1,int x2,int y2); 46 | bool midclickinwindow( float x1,float y1,float x2,float y2); 47 | bool midclickinwindow( int x1,int y1,int x2,int y2); 48 | void waitforleftbuttonrelease(); 49 | void waitforrightbuttonrelease(); 50 | void switchto2d(); 51 | GLvoid BuildFont(GLvoid); 52 | GLvoid BuildFontSmall(GLvoid); 53 | GLvoid BuildFont2(GLvoid); 54 | void glPrint(const char* text, GLuint font); 55 | void glPrint(const char* text, GLuint font, int i); 56 | void glPrintCenter(const char* text, GLuint font, int x1, int y1, int x2, int y2); 57 | 58 | #endif -------------------------------------------------------------------------------- /aDDict/Data/Musics/alap1234.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/Data/Musics/alap1234.zip -------------------------------------------------------------------------------- /aDDict/Data/Musics/apcu.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/Data/Musics/apcu.zip -------------------------------------------------------------------------------- /aDDict/Data/Projects/genesis_final2.64k: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/Data/Projects/genesis_final2.64k -------------------------------------------------------------------------------- /aDDict/Data/Projects/universe_final.64k: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/Data/Projects/universe_final.64k -------------------------------------------------------------------------------- /aDDict/FileIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/FileIO.cpp -------------------------------------------------------------------------------- /aDDict/FileIO.h: -------------------------------------------------------------------------------- 1 | #ifndef __FileIO__ 2 | #define __FileIO__ 3 | 4 | #include "aDDict.h" 5 | #include "engine.h" 6 | #include "stdlib.h" 7 | 8 | #define aDDict_Texture 84+88*256+84*256*256+82*256*256*256 9 | #define aDDict_Material 77+84*256+82*256*256+76*256*256*256 10 | #define aDDict_Scene 83+67*256+78*256*256+69*256*256*256 11 | #define aDDict_Selection 83+69*256+76*256*256+46*256*256*256 12 | #define aDDict_Lights 76+73*256+71*256*256+84*256*256*256 13 | #define aDDict_Fog 70+79*256+71*256*256 14 | #define aDDict_Object 79+66*256+74*256*256 15 | #define aDDict_Object2 '2JBO' 16 | #define aDDict_EOF 69+79*256+70*256*256+46*256*256*256 17 | #define aDDict_CameraAni 67+65*256+78*256*256+73*256*256*256 18 | #define aDDict_CameraKey 67+75*256+69*256*256+89*256*256*256 19 | #define aDDict_Event 69+86*256+78*256*256+84*256*256*256 20 | #define aDDict_Event2 0x324e5645 21 | #define aDDict_Anim 0x4d494e41 22 | #define aDDict_AnimKey 0x59454b41 23 | 24 | struct andobjdata 25 | { 26 | unsigned nemtommi : 1, //FIX 0 27 | felbontas : 4, //FIX 28 | a:1,b:1,c : 1, 29 | 30 | curvenum : 2, // lehet kevesebb is (biztos ;) 31 | y3 : 1, // lehet kevesebb is (biztos ;) 32 | y4 : 1, // lehet kevesebb is (biztos ;) 33 | y5 : 1, // lehet kevesebb is (biztos ;) 34 | y6 : 1, // lehet kevesebb is (biztos ;) 35 | y7 : 1, // lehet kevesebb is (biztos ;) 36 | y8 : 1, // lehet kevesebb is (biztos ;) 37 | 38 | ismetles : 8, // FIX 39 | nemtommi2 : 8; // FIX = 0 40 | }; 41 | 42 | struct rotdata 43 | { 44 | unsigned x :5, 45 | y :5, 46 | z :5; 47 | }; 48 | 49 | struct andobj 50 | { 51 | andobjdata group; 52 | float x,y,z,xs,ys,zs; 53 | rotdata rot; 54 | }; 55 | 56 | struct chunk 57 | { 58 | int ID; 59 | int size; 60 | }; 61 | 62 | struct camfield 63 | { 64 | unsigned fovwritten : 1, 65 | rollwritten: 1, 66 | eyexwritten : 1, 67 | eyeywritten : 1, 68 | eyezwritten : 1, 69 | targetxwritten: 1, 70 | targetywritten: 1, 71 | targetzwritten: 1; 72 | }; 73 | 74 | struct objfield 75 | { 76 | unsigned posx : 1, 77 | posy : 1, 78 | posz : 1, 79 | rotx : 1, 80 | roty : 1, 81 | rotz : 1, 82 | rota : 1, 83 | strx : 1, 84 | stry : 1, 85 | strz : 1, 86 | colr : 1, 87 | colg : 1, 88 | colb : 1, 89 | cola : 1; 90 | }; 91 | 92 | 93 | bool loadaDDictscene(scene *scn, tTexture *textures, char *filename, bool objectload,bool selectionload,bool textureload,bool lightload,bool cameraload,bool environmentload); 94 | bool saveaDDictscene(scene &scn, tTexture *textures, const char *filename); 95 | void SaveMinimalScene(scene &scn, tTexture *textures, const char *filename); 96 | 97 | void saveminimalproject(const char *filename, byte floatbytes); 98 | 99 | void SaveProject(const char *filename); 100 | void LoadProject(const char *filename); 101 | void loadandscene(scene &scn, const char *filename); 102 | 103 | #endif -------------------------------------------------------------------------------- /aDDict/IntroEngine/CNSlogo.h: -------------------------------------------------------------------------------- 1 | /* This file is generated with raw2h */ 2 | 3 | #ifndef _CNSlogo_ 4 | #define _CNSlogo_ 5 | 6 | unsigned char raw_CNSlogo[] = 7 | { 8 | 2,1,0,13,7,0,3,63,3,197,0,0,0,10,67,79,78,83,80,73,82,65,67,89,1,1,0,0,91, 9 | 223,250,103,0,5,2,0,4,26,199,18,237,0,17,1,2,0,6,2,0,4,0,23,3,0,1,0,0,0,0, 10 | 0,39,3,0,0,0,0,0,0,0,30,3,64,0,0,0,0,0,0,32,1,3,0,0,0,0,0,0,23,2,0,0,0,0, 11 | 0,0,0,39,2,0,0,0,0,0,0,0,32,1,2,0,0,0,0,0,0,24,0,1,87,0,0,0,0,0,37,0,0,0, 12 | 255,0,243,0,227,1,0,0,0,0,0,3,15,0,6,56,24,0,0,0,0,55,150,0,0,3,1,1,20,63, 13 | 0,0,170,62,42,190,0,0,89,62,0,0,16,189,20,191,0,0,64,64,45,64,6,56,24,0,1, 14 | 0,0,55,150,0,0,3,1,1,226,185,0,0,23,64,139,63,0,0,89,62,0,0,16,189,81,191, 15 | 0,0,242,63,20,64,6,56,24,0,2,0,0,55,150,0,0,3,1,1,20,191,0,0,64,64,217,63, 16 | 0,0,89,62,0,0,16,189,20,191,0,0,170,190,149,63,6,56,24,0,3,0,0,55,150,0,0, 17 | 3,1,1,81,191,0,0,242,63,169,63,0,0,89,62,0,0,16,189,226,57,0,0,23,192,174, 18 | 189,6,56,24,0,4,0,0,55,150,0,0,3,1,1,20,191,0,0,170,190,42,62,0,0,89,62,0, 19 | 0,16,189,20,63,0,0,64,192,51,191,6,56,24,0,5,0,0,55,150,0,0,3,1,1,226,57, 20 | 0,0,23,192,139,191,0,0,89,62,0,0,16,189,81,63,0,0,242,191,164,190,6,56,24, 21 | 0,6,0,0,55,150,0,0,3,1,1,20,63,0,0,64,192,217,191,0,0,89,62,0,0,16,189,20, 22 | 63,0,0,170,62,85,63,6,56,24,0,7,0,0,55,150,0,0,3,1,1,81,63,0,0,242,191,169, 23 | 191,0,0,89,62,0,0,16,189,226,185,0,0,23,64,5,64,6,56,24,0,8,0,0,55,150,0, 24 | 0,12,1,1,128,63,0,0,0,0,0,0,0,0,89,62,0,0,16,189,0,0,0,0,128,63,128,63,6, 25 | 0,24,0,9,0,0,0,3,1,1,158,63,0,0,0,0,69,60,0,0,227,61,0,0,125,60,0,0,0,0,47, 26 | 64,72,64,15,4,24,0,10,0,4,0,0,53,63,0,0,53,63,53,191,0,0,128,63,0,0,0,0,53, 27 | 191,0,0,53,63,150,62,1,0,9,0,15,4,24,0,11,0,4,0,0,162,51,0,0,128,63,128,191, 28 | 0,0,128,63,0,0,0,0,128,191,0,0,162,51,128,63,2,0,10,0,9,0,15,4,24,0,12,0, 29 | 4,0,0,128,191,0,0,34,52,34,180,0,0,128,63,0,0,0,0,34,180,0,0,128,191,0,64, 30 | 3,0,11,0,10,0,9,0,6,0,24,0,13,0,0,0,24,1,1,95,64,0,0,0,0,0,0,0,0,225,61,0, 31 | 0,119,60,0,0,0,0,95,64,128,63,12,4,24,0,14,0,3,0,0,10,15,248,64,0,0,0,0,0, 32 | 0,0,0,248,64,0,0,148,61,0,0,0,0,30,65,69,189, 33 | }; 34 | 35 | int raw_CNSlogo_size=705; 36 | 37 | /* Total 705 bytes */ 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/CNSprecalc.h: -------------------------------------------------------------------------------- 1 | /* This file is generated with raw2h */ 2 | 3 | #ifndef _CNSprecalc_ 4 | #define _CNSprecalc_ 5 | 6 | unsigned char raw_CNSprecalc[] = 7 | { 8 | 3,1,0,0,0,9,0,6,56,24,0,0,0,0,55,150,0,0,3,1,1,15,20,63,0,0,0,99,170,62,112, 9 | 42,190,0,0,0,15,89,62,0,0,0,7,16,189,55,20,191,0,0,0,195,64,64,5,45,64,6, 10 | 56,24,0,1,0,0,55,150,0,0,3,1,1,65,226,185,0,0,0,93,23,64,5,139,63,0,0,0,15, 11 | 89,62,0,0,0,7,16,189,127,81,191,0,0,0,124,242,63,163,20,64,6,56,24,0,2,0, 12 | 0,55,150,0,0,3,1,1,55,20,191,0,0,0,195,64,64,233,217,63,0,0,0,15,89,62,0, 13 | 0,0,7,16,189,15,20,191,0,0,0,98,170,190,111,149,63,6,56,24,0,3,0,0,55,150, 14 | 0,0,3,1,1,127,81,191,0,0,0,124,242,63,38,169,63,0,0,0,15,89,62,0,0,0,7,16, 15 | 189,59,226,57,0,0,0,93,23,192,59,174,189,6,56,24,0,4,0,0,55,150,0,0,3,1,1, 16 | 15,20,191,0,0,0,98,170,190,112,42,62,0,0,0,15,89,62,0,0,0,7,16,189,55,20, 17 | 63,0,0,0,195,64,192,143,51,191,6,56,24,0,5,0,0,55,150,0,0,3,1,1,48,226,57, 18 | 0,0,0,93,23,192,5,139,191,0,0,0,15,89,62,0,0,0,7,16,189,127,81,63,0,0,0,124, 19 | 242,191,18,164,190,6,56,24,0,6,0,0,55,150,0,0,3,1,1,55,20,63,0,0,0,195,64, 20 | 192,233,217,191,0,0,0,15,89,62,0,0,0,7,16,189,15,20,63,0,0,0,98,170,62,166, 21 | 85,63,6,56,24,0,7,0,0,55,150,0,0,3,1,1,127,81,63,0,0,0,124,242,191,38,169, 22 | 191,0,0,0,15,89,62,0,0,0,7,16,189,42,226,185,0,0,0,93,23,64,147,5,64,6,56, 23 | 24,0,8,0,0,55,150,0,0,12,1,1,0,128,63,0,0,0,0,0,0,0,0,0,0,0,0,57,89,62,0, 24 | 0,0,136,16,189,0,0,0,0,0,0,0,128,63,33,128,63, 25 | }; 26 | 27 | int raw_CNSprecalc_size=457; 28 | 29 | /* Total 457 bytes */ 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/Intro.cpp: -------------------------------------------------------------------------------- 1 | #include "intro.h" 2 | #define fullscr false 3 | 4 | int SceneNum = 2; 5 | 6 | scene *CNSlogo=NULL,*copytest=NULL; 7 | tTexture *texturelist=NULL,*lasttexture=NULL; 8 | material *materiallist=NULL,*lastmaterial=NULL; 9 | matrix m; 10 | 11 | camera cam; 12 | 13 | void Init() 14 | { 15 | memset(&cam,0,sizeof(cam)); 16 | cam.up.b.z=1; 17 | cam.eye.b.y=-16; 18 | cam.eye.b.z=0; 19 | cam.fov=45; 20 | inittextureengine(); 21 | InitPrecalc(); 22 | //LoadScene(raw_copytest,©test,&texturelist,&lasttexture,&materiallist,&lastmaterial,SceneNum,PrecalcAnim); 23 | LoadScene(raw_alienprobe,&CNSlogo,&texturelist,&lasttexture,&materiallist,&lastmaterial,SceneNum,PrecalcAnim); 24 | status=0; 25 | while (status<=1) 26 | { 27 | PrecalcRotate(status); 28 | status+=0.005f; 29 | } 30 | glEnable(GL_LIGHTING); 31 | glEnable(GL_TEXTURE_2D); 32 | glColor4f(1,1,1,1); 33 | m_rotate(0.9f,1.0f,0.7f,radtheta,m); 34 | } 35 | 36 | void MainLoop() 37 | { 38 | while (!done) 39 | { 40 | if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) 41 | { 42 | TranslateMessage(&msg); 43 | DispatchMessage(&msg); 44 | } 45 | else if (keys[VK_ESCAPE]) done=true; 46 | else 47 | { 48 | glClear(0x4100); 49 | glLoadIdentity(); 50 | m_xform3(m,cam.eye,cam.eye); 51 | m_xform3(m,cam.up,cam.up); 52 | setcameraview(cam,4.0f/3.0f); 53 | scene_render(*CNSlogo); 54 | //scene_render(*copytest); 55 | SwapBuffers(hDC); 56 | Sleep(10); 57 | } 58 | 59 | } 60 | } 61 | 62 | 63 | INT WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow ) 64 | { 65 | Intro_CreateWindow("a.D.D.i.c.t. Engine Test", 800, 600, 32, fullscr, LoadIcon(hInstance, MAKEINTRESOURCE(101))); 66 | Init(); 67 | MainLoop(); 68 | KillGLWindow(); 69 | return 0; 70 | } -------------------------------------------------------------------------------- /aDDict/IntroEngine/Intro.h: -------------------------------------------------------------------------------- 1 | #ifndef __intro__ 2 | #define __intro__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "IntroWindow.h" 10 | #include "alienprobe.h" 11 | #include "copytest.h" 12 | #include "IntroEngine.h" 13 | #include "IntroInput.h" 14 | #include "Vectors.h" 15 | #include "Precalc.h" 16 | 17 | #endif -------------------------------------------------------------------------------- /aDDict/IntroEngine/IntroEngine.plg: -------------------------------------------------------------------------------- 1 | 2 | 3 |
 4 | 

Build Log

5 |

6 | --------------------Configuration: IntroEngine - Win32 Release-------------------- 7 |

8 |

Command Lines

9 | Creating temporary file "C:\DOCUME~1\BoyC\LOCALS~1\Temp\RSP597.tmp" with contents 10 | [ 11 | /nologo /MD /W3 /GX /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Release/IntroEngine.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c 12 | "C:\!DigitalDynamite!\C\aDDict\IntroEngine\IntroInput.cpp" 13 | ] 14 | Creating command line "xicl6.exe @C:\DOCUME~1\BoyC\LOCALS~1\Temp\RSP597.tmp" 15 | Creating temporary file "C:\DOCUME~1\BoyC\LOCALS~1\Temp\RSP598.tmp" with contents 16 | [ 17 | glu32.lib opengl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:no /pdb:"Release/IntroEngine.pdb" /machine:I386 /out:"Release/IntroEngine.exe" 18 | ".\Release\Intro.obj" 19 | ".\Release\IntroEngine.obj" 20 | ".\Release\IntroInput.obj" 21 | ".\Release\IntroWindow.obj" 22 | ".\Release\Precalc.obj" 23 | ".\Release\TexGen.obj" 24 | ".\Release\vectors.obj" 25 | ] 26 | Creating command line "xilink6.exe @C:\DOCUME~1\BoyC\LOCALS~1\Temp\RSP598.tmp" 27 |

Output Window

28 | Compiling... 29 | IntroInput.cpp 30 | C:\!DigitalDynamite!\C\aDDict\IntroEngine\IntroInput.cpp(334) : error C2065: 'matselected' : undeclared identifier 31 | Error executing xicl6.exe. 32 | 33 | 34 | 35 |

Results

36 | IntroEngine.exe - 1 error(s), 0 warning(s) 37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/IntroEngine.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {19f52c37-b443-4486-9050-3e2dd4888444} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {a4c6c2b8-e727-4cae-805e-10d8407d28f4} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {59a24b1d-3c80-46b9-bf9b-499a972383ee} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | Source Files 26 | 27 | 28 | Source Files 29 | 30 | 31 | Source Files 32 | 33 | 34 | Source Files 35 | 36 | 37 | Source Files 38 | 39 | 40 | 41 | 42 | Header Files 43 | 44 | 45 | Header Files 46 | 47 | 48 | Header Files 49 | 50 | 51 | Header Files 52 | 53 | 54 | Header Files 55 | 56 | 57 | Header Files 58 | 59 | 60 | Header Files 61 | 62 | 63 | Header Files 64 | 65 | 66 | Header Files 67 | 68 | 69 | Header Files 70 | 71 | 72 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/IntroEngine.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/IntroInput.h: -------------------------------------------------------------------------------- 1 | #ifndef __IntroInput__ 2 | #define __IntroInput__ 3 | 4 | #include "IntroEngine.h" 5 | 6 | extern float status,oldstatus; 7 | 8 | typedef void (WINAPI *LOADER_CALLBACK)(float f); 9 | 10 | void LoadScene(unsigned char *data, scene **scn, tTexture **texlist, tTexture **lasttex, material **matlist, material **lastmat, int scnnum, LOADER_CALLBACK StatusBar); 11 | 12 | #endif -------------------------------------------------------------------------------- /aDDict/IntroEngine/IntroWindow.h: -------------------------------------------------------------------------------- 1 | #ifndef __IntroWindow__ 2 | #define __IntroWindow__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | extern HDC hDC; 10 | extern HGLRC hRC; 11 | extern HWND hWnd; 12 | extern HINSTANCE hInstance; 13 | 14 | extern bool keys[256]; 15 | extern bool active; 16 | extern bool fullscreen; 17 | 18 | extern bool done; 19 | extern int window_xsize,window_ysize; 20 | extern bool mode3d; 21 | 22 | extern GLuint base,basesmall; 23 | extern MSG msg; 24 | 25 | GLvoid KillGLWindow(GLvoid); 26 | LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 27 | BOOL Intro_CreateWindow(char* title, int width, int height, int bits, bool fullscreenflag, HICON icon); 28 | 29 | #endif -------------------------------------------------------------------------------- /aDDict/IntroEngine/Precalc.cpp: -------------------------------------------------------------------------------- 1 | #include "precalc.h" 2 | #include "CNSprecalc.h" 3 | 4 | scene *CNSprecalc=NULL; 5 | camera pcam; 6 | 7 | void WINAPI PrecalcAnim(float endvalue) 8 | { 9 | glPushAttrib(GL_ALL_ATTRIB_BITS); 10 | glEnable(GL_LIGHTING); 11 | float realstatus=status/endvalue; 12 | if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) 13 | { 14 | TranslateMessage(&msg); 15 | DispatchMessage(&msg); 16 | } 17 | else if (keys[VK_ESCAPE]) done=true; 18 | else 19 | { 20 | realstatus=status/endvalue; 21 | matrix m; 22 | object *o=CNSprecalc->objects; 23 | glClear(0x4100); 24 | glLoadIdentity(); 25 | int x; 26 | for (x=0; x<=7; x++) 27 | { 28 | int y; 29 | for (y=0;yvertexnum;y++) o->vertexlist[y].v=o->vertexlist[y].generated; 30 | o=o->next; 31 | } 32 | o=CNSprecalc->objects; 33 | for (x=0; x<=7; x++) 34 | { 35 | m_identity(m); 36 | if ((realstatus>=(float)x/8.0f) && (realstatus<(float)(x+1)/8.0f)) m_xpose((float)(sin((float)x/8.0f*radtheta*360)*((float)x/8.0f-realstatus+1.0f/8.0f)*100.0f),0,(float)(cos((float)x/8.0f*radtheta*360)*((float)x/8.0f-realstatus+1.0f/8.0f)*100.0f),m); 37 | if (realstatus<=(float)(x)/8.0f) memset(m,0,sizeof(m)); 38 | int y; 39 | for (y=0;yvertexnum;y++) m_xformd(m,o->vertexlist[y].generated,o->vertexlist[y].generated); 40 | o=o->next; 41 | } 42 | 43 | glLoadIdentity(); 44 | setcameraview(pcam,4.0f/3.0f); 45 | scene_render(*CNSprecalc); 46 | 47 | o=CNSprecalc->objects; 48 | for (x=0; x<=7; x++) 49 | { 50 | int y; 51 | for (y=0;yvertexnum;y++) o->vertexlist[y].generated=o->vertexlist[y].v; 52 | o=o->next; 53 | } 54 | 55 | SwapBuffers(hDC); 56 | } 57 | glPopAttrib(); 58 | 59 | } 60 | 61 | void PrecalcRotate(float f) 62 | { 63 | glPushAttrib(GL_ALL_ATTRIB_BITS); 64 | glEnable(GL_LIGHTING); 65 | glDisable(GL_TEXTURE_2D); 66 | matrix m,m1; 67 | object *o=CNSprecalc->objects; 68 | float phi; 69 | m_xpose(0,0,-1.002f,m1); 70 | if (f<=0.5) phi=(float)(f*f*810*radtheta); else phi=(float)(25.12-(1-f)*(1-f)*810*radtheta); 71 | m_rotate(0,1,0,phi,m); 72 | m_mult(m,m1,m); 73 | m_xpose(0,0,1.002f,m1); 74 | m_mult(m1,m,m); 75 | int x; 76 | for (x=0; x<=7; x++) 77 | { 78 | int y; 79 | for (y=0;yvertexnum;y++) m_xformd(m,o->vertexlist[y].generated,o->vertexlist[y].generated); 80 | o=o->next; 81 | } 82 | glClear(0x4100); 83 | glLoadIdentity(); 84 | setcameraview(pcam,4.0f/3.0f); 85 | glDisable(GL_TEXTURE_2D); 86 | scene_render(*CNSprecalc); 87 | SwapBuffers(hDC); 88 | 89 | o=CNSprecalc->objects; 90 | for (x=0; x<=7; x++) 91 | { 92 | int y; 93 | for (y=0;yvertexnum;y++) o->vertexlist[y].generated=o->vertexlist[y].v; 94 | o=o->next; 95 | } 96 | glPopAttrib(); 97 | } 98 | 99 | void WINAPI animdummy(float f) 100 | { 101 | } 102 | 103 | 104 | void InitPrecalc() 105 | { 106 | memset(&pcam,0,sizeof(pcam)); 107 | pcam.up.b.z=1; 108 | pcam.eye.b.y=-16; 109 | pcam.eye.b.z=0; 110 | pcam.fov=45; 111 | tTexture *texturelist=NULL,*lasttexture=NULL; 112 | material *materiallist=NULL,*lastmaterial=NULL; 113 | LoadScene(raw_CNSprecalc,&CNSprecalc,&texturelist,&lasttexture,&materiallist,&lastmaterial,2,animdummy);status=0; 114 | } -------------------------------------------------------------------------------- /aDDict/IntroEngine/Precalc.h: -------------------------------------------------------------------------------- 1 | #ifndef __precalc__ 2 | #define __precalc__ 3 | 4 | #include "introinput.h" 5 | #include "introengine.h" 6 | 7 | extern scene *CNSprecalc; 8 | 9 | void WINAPI PrecalcAnim(float endvalue); 10 | void PrecalcRotate(float f); 11 | void WINAPI animdummy(float f); 12 | void InitPrecalc(); 13 | 14 | #endif -------------------------------------------------------------------------------- /aDDict/IntroEngine/TexGen.h: -------------------------------------------------------------------------------- 1 | #ifndef __TexGen__ 2 | #define __TexGen__ 3 | #include 4 | 5 | extern char *fonts[8]; 6 | 7 | #define pi 3.141592654 8 | #define radtheta 0.017453292f 9 | 10 | #define DD_fractal 1 11 | #define DD_plasma 2 12 | #define DD_cells 3 13 | #define DD_envmap 4 14 | #define DD_subplasm 5 15 | #define DD_clear 6 16 | #define DD_text 7 17 | 18 | #define DD_sindist 10 19 | #define DD_offset 11 20 | #define DD_twirl 12 21 | #define DD_blur 15 22 | #define DD_map 17 23 | #define DD_dirblur 18 24 | #define DD_xchng 20 25 | #define DD_copy 23 26 | #define DD_mix 24 27 | #define DD_mul 25 28 | #define DD_add 26 29 | #define DD_max 27 30 | #define DD_contrast 30 31 | #define DD_invert 31 32 | #define DD_shade 32 33 | #define DD_bright 33 34 | #define DD_sincol 34 35 | #define DD_scale 35 36 | #define DD_hsv 36 37 | #define DD_colorize 37 38 | #define DD_mixmap 38 39 | 40 | #define DD_emboss 39 41 | #define DD_stored 255 42 | 43 | typedef unsigned char byte; 44 | typedef union tRGBA { 45 | struct {byte r,g,b,a;} a; 46 | byte cols[4]; 47 | 48 | } rgba; 49 | 50 | typedef struct hsv_ {float h,s,v;} hsv; 51 | 52 | typedef struct { 53 | char text[256]; 54 | } string; 55 | 56 | typedef union { 57 | struct { 58 | byte commandnumber, 59 | layer, 60 | datalayer1, 61 | datalayer2, 62 | param1, 63 | param2, 64 | param3, 65 | param4, 66 | param5; 67 | } c; 68 | byte command[9]; 69 | 70 | 71 | } texturecommand; 72 | 73 | class texture { 74 | public: 75 | byte commandnum; 76 | texturecommand commands[100]; 77 | rgba layers[4][256][256]; 78 | string texts[100]; 79 | 80 | void performcommand(texturecommand command); 81 | void init(); 82 | 83 | void fractal(texturecommand incmnd); 84 | void plasma(texturecommand incmnd); 85 | void cells(texturecommand incmnd); 86 | void envmap(texturecommand incmnd); 87 | void subplasma(texturecommand incmnd); 88 | void clear(texturecommand incmnd); 89 | 90 | void sinustors(texturecommand incmnd); 91 | void offset(texturecommand incmnd); 92 | void twirl(texturecommand incmnd); 93 | void map(texturecommand incmnd); 94 | void dirblur(texturecommand incmnd); 95 | 96 | void xch(texturecommand incmnd); 97 | void copy(texturecommand incmnd); 98 | void mix(texturecommand incmnd); 99 | void mul(texturecommand incmnd); 100 | void add(texturecommand incmnd); 101 | void max_(texturecommand incmnd); 102 | void invert(texturecommand incmnd); 103 | void shade(texturecommand incmnd); 104 | void sincol(texturecommand incmnd); 105 | void scale(texturecommand incmnd); 106 | void dohsv(texturecommand incmnd); 107 | void emboss(texturecommand incmnd); 108 | void blur(texturecommand incmnd); 109 | void colorize(texturecommand incmnd); 110 | void bright(texturecommand incmnd); 111 | void contrast(texturecommand incmnd); 112 | void mixmap(texturecommand incmnd); 113 | 114 | void text(texturecommand incmnd); 115 | 116 | }; 117 | 118 | //void texture::init(); 119 | //void texture::performcommand(texturecommand incmnd); 120 | void inittextureengine(); 121 | #endif -------------------------------------------------------------------------------- /aDDict/IntroEngine/alienprobe.h: -------------------------------------------------------------------------------- 1 | /* This file is generated with raw2h */ 2 | 3 | #ifndef _alienprobe_ 4 | #define _alienprobe_ 5 | 6 | unsigned char raw_alienprobe[] = 7 | { 8 | 3,1,0,3,3,0,0,1,255,0,0,0,0,11,0,169,166,0,0,0,0,0,31,0,0,0,0,0,0,0,0,1,0, 9 | 0,0,0,0,4,10,0,1,0,24,0,0,0,0,0,0,128,63,0,0,0,0,0,0,0,0,0,0,0,0,0,128,63, 10 | 0,0,0,0,0,0,0,0,0,0,0,0,0,128,63,0,0,0,103,0,24,0,1,0,0,0,1,1,0,0,0,101,0, 11 | 24,0,2,0,0,0,1,1,0,0,0,104,0,0,0,3,0,1,73,4,63,73,4,63,73,4,63,1,0,0,0,100, 12 | 0,24,0,4,0,0,0,1,1,0,0,0,104,0,0,0,5,0,1,229,103,64,229,103,64,229,103,64, 13 | 1,0,0,0,100,0,24,0,6,0,0,0,1,1,0,0,0,104,0,0,0,7,0,1,246,21,63,246,21,63, 14 | 246,21,63,1,0,0,0,100,0,24,0,8,0,0,0,1,1,0,0,0,1,0,24,0,9,0,0,0,40,3,63,0, 15 | 0,0,103,145,62,121,73,63,99,30,62,137,251,62,222,142,190,0,0,0,228,115,190, 16 | 89,163,62,255,219,62,217,9,63, 17 | }; 18 | 19 | int raw_alienprobe_size=253; 20 | 21 | /* Total 253 bytes */ 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/copytest.h: -------------------------------------------------------------------------------- 1 | /* This file is generated with raw2h */ 2 | 3 | #ifndef _copytest_ 4 | #define _copytest_ 5 | 6 | unsigned char raw_copytest[] = 7 | { 8 | 3,1,0,17,3,1,0,100,255,145,243,71,49,37,1,0,255,0,0,0,0,0,25,1,1,0,0,0,0, 9 | 0,0,37,1,0,0,255,0,215,0,180,30,1,72,0,0,0,0,0,0,30,1,142,0,0,0,0,0,0,1,0, 10 | 0,0,97,65,97,65,0,37,0,0,0,255,0,215,0,180,30,0,112,0,0,0,0,0,0,23,3,2,1, 11 | 2,0,0,0,0,35,3,2,39,121,0,0,0,0,39,3,0,0,0,0,0,0,0,32,1,3,2,0,0,0,0,0,18, 12 | 1,2,2,21,0,0,0,0,26,0,1,0,0,0,0,0,0,18,0,1,1,21,0,0,0,0,20,0,0,0,1,0,0,0, 13 | 0,1,0,0,0,39,3,0,3,0,9,0,24,0,66,114,0,0,48,104,1,173,153,64,205,104,64,82, 14 | 7,192,0,0,0,189,130,192,255,80,64,90,106,192,0,0,0,154,128,191,110,131,64, 15 | 22,153,64,0,0,0,10,36,24,0,67,114,0,154,0,0,66,114,66,114,0,128,63,0,0,0, 16 | 0,0,0,0,0,0,0,0,0,0,128,63,0,0,0,0,0,0,0,0,0,0,0,0,0,128,63,0,0,0,10,124, 17 | 24,0,68,114,0,57,203,138,162,0,0,66,114,66,114,0,128,191,0,0,0,33,34,52,0, 18 | 0,0,0,0,0,0,128,63,0,0,0,0,0,0,33,34,180,0,0,0,0,128,191,0,0,0, 19 | }; 20 | 21 | int raw_copytest_size=316; 22 | 23 | /* Total 316 bytes */ 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /aDDict/IntroEngine/vectors.h: -------------------------------------------------------------------------------- 1 | #ifndef __vectors__ 2 | #define __vectors__ 3 | 4 | #include 5 | #include 6 | 7 | typedef float matrix[4][4]; 8 | 9 | union vector2 10 | { 11 | float a[2]; 12 | struct { 13 | float x,y; 14 | }b; 15 | }; 16 | 17 | union vector3 18 | { 19 | float a[3]; 20 | struct { 21 | float x,y,z; 22 | }b; 23 | }; 24 | 25 | union vector4 26 | { 27 | float a[4]; 28 | struct { 29 | float x,y,z,w; 30 | }b; 31 | }; 32 | 33 | 34 | typedef vector3 vector; 35 | 36 | 37 | void v3_mults(vector3 v, float r, vector3 &d); 38 | float v3_len(vector3 v); 39 | 40 | 41 | void v3_make(float ax, float ay, float az , vector3 &d); 42 | void v3_normalize(vector3 v, vector3 &d); 43 | 44 | void m_mults(matrix m, float r, matrix &d); 45 | void m_diadic3(vector3 v1, vector3 v2, matrix &m); 46 | void m_cross(vector3 v, matrix &m); 47 | void m_add(matrix m1, matrix m2, matrix &m); 48 | 49 | 50 | void m_identity(matrix &m); 51 | void m_mult(matrix m1, matrix m2, matrix &m); 52 | void m_xpose(float ax,float ay,float az,matrix &m); 53 | void m_rotate(float ax,float ay,float az,float phi,matrix &m); 54 | void m_scale(float ax, float ay, float az, matrix &m); 55 | void m_invert(matrix &mat); 56 | void m_invert(matrix m,matrix &dest); 57 | 58 | vector3 vect_osszeadas( vector3 a, vector3 b); 59 | vector3 vect_kivonas( vector3 a, vector3 b); 60 | vector3 egyseg( vector3 a); 61 | void m_xformd(matrix m,vector3 v, vector3 &d); 62 | void m_xform3(matrix m, vector3 v, vector3 &d); 63 | 64 | vector3 cross(vector3 b, vector3 c); 65 | vector3 vect_skalarszorzas(vector3 b, float a); 66 | float dotproduct(vector3 a, vector3 b); 67 | 68 | void m_revxpose(const matrix m, vector3 &v); 69 | void m_revscale(const matrix m, vector3 &v); 70 | void m_revrotate(const matrix m, vector3 &v, float &phi); 71 | 72 | #endif -------------------------------------------------------------------------------- /aDDict/ModellGui.h: -------------------------------------------------------------------------------- 1 | #ifndef __modellergui__ 2 | #define __modellergui__ 3 | 4 | #include "addict.h" 5 | #include "DDwindow.h" 6 | #include "ddgui.h" 7 | #include "engine.h" 8 | 9 | struct window3d { 10 | int xpos,ypos,oxpos,oypos,xsize,ysize; 11 | int pos; 12 | int a,b,c; 13 | int c1,c2,c3; 14 | char *xn,*yn; 15 | float camsensitivity; 16 | camera cam,cam2; 17 | bool wireframe; 18 | bool perspective; 19 | bool grid; 20 | bool fullscreen; 21 | bool showhidden; 22 | char *name; 23 | char transformation; 24 | bool centertransform; 25 | bool objspacetransform; 26 | objkeyframedata or; 27 | int odx,ody; 28 | }; 29 | 30 | extern window3d modellviews[4]; 31 | extern int lightselected; 32 | extern GLuint backrawtex; 33 | 34 | 35 | int materialnum(material *t); 36 | void InitModellerGUI(); 37 | void delete_selected(); 38 | void ModellerGUI(unsigned char mode); 39 | 40 | void deselectall(); 41 | float CalcXGLScene(float z, float fov, float aspect); 42 | float CalcYGLScene(float z, float fov, float aspect); 43 | int polycounter(scene *scn); 44 | void displaywindow(window3d &win, unsigned char mode); 45 | 46 | int cntscenes(); 47 | 48 | #endif -------------------------------------------------------------------------------- /aDDict/TexGen.h: -------------------------------------------------------------------------------- 1 | #ifndef __TexGen__ 2 | #define __TexGen__ 3 | #include 4 | 5 | extern char *fonts[8]; 6 | 7 | #define pi 3.141592654 8 | #define radtheta 0.017453292 9 | 10 | #define DD_fractal 1 11 | #define DD_plasma 2 12 | #define DD_cells 3 13 | #define DD_envmap 4 14 | #define DD_subplasm 5 15 | #define DD_clear 6 16 | #define DD_text 7 17 | 18 | #define DD_sindist 10 19 | #define DD_offset 11 20 | #define DD_twirl 12 21 | #define DD_blur 15 22 | #define DD_map 17 23 | #define DD_dirblur 18 24 | #define DD_xchng 20 25 | #define DD_copy 23 26 | #define DD_mix 24 27 | #define DD_mul 25 28 | #define DD_add 26 29 | #define DD_max 27 30 | #define DD_contrast 30 31 | #define DD_invert 31 32 | #define DD_shade 32 33 | #define DD_bright 33 34 | #define DD_sincol 34 35 | #define DD_scale 35 36 | #define DD_hsv 36 37 | #define DD_colorize 37 38 | #define DD_mixmap 38 39 | 40 | #define DD_emboss 39 41 | #define DD_stored 255 42 | 43 | typedef unsigned char byte; 44 | typedef union tRGBA { 45 | struct {byte r,g,b,a;} a; 46 | byte cols[4]; 47 | 48 | } rgba; 49 | 50 | typedef struct hsv_ {float h,s,v;} hsv; 51 | 52 | typedef struct { 53 | char text[256]; 54 | } string; 55 | 56 | typedef union { 57 | struct { 58 | byte commandnumber, 59 | layer, 60 | datalayer1, 61 | datalayer2, 62 | param1, 63 | param2, 64 | param3, 65 | param4, 66 | param5; 67 | } c; 68 | byte command[9]; 69 | 70 | 71 | } texturecommand; 72 | 73 | class texture { 74 | public: 75 | byte commandnum; 76 | texturecommand commands[100]; 77 | rgba layers[4][256][256]; 78 | string texts[100]; 79 | 80 | void performcommand(texturecommand command); 81 | void init(); 82 | 83 | void fractal(texturecommand incmnd); 84 | void plasma(texturecommand incmnd); 85 | void cells(texturecommand incmnd); 86 | void envmap(texturecommand incmnd); 87 | void subplasma(texturecommand incmnd); 88 | void clear(texturecommand incmnd); 89 | 90 | void sinustors(texturecommand incmnd); 91 | void offset(texturecommand incmnd); 92 | void twirl(texturecommand incmnd); 93 | void map(texturecommand incmnd); 94 | void dirblur(texturecommand incmnd); 95 | 96 | void xch(texturecommand incmnd); 97 | void copy(texturecommand incmnd); 98 | void mix(texturecommand incmnd); 99 | void mul(texturecommand incmnd); 100 | void add(texturecommand incmnd); 101 | void max_(texturecommand incmnd); 102 | void invert(texturecommand incmnd); 103 | void shade(texturecommand incmnd); 104 | void sincol(texturecommand incmnd); 105 | void scale(texturecommand incmnd); 106 | void dohsv(texturecommand incmnd); 107 | void emboss(texturecommand incmnd); 108 | void blur(texturecommand incmnd); 109 | void colorize(texturecommand incmnd); 110 | void bright(texturecommand incmnd); 111 | void contrast(texturecommand incmnd); 112 | void mixmap(texturecommand incmnd); 113 | 114 | void text(texturecommand incmnd); 115 | 116 | }; 117 | 118 | //void texture::init(); 119 | //void texture::performcommand(texturecommand incmnd); 120 | void inittextureengine(); 121 | #endif -------------------------------------------------------------------------------- /aDDict/Track.cpp: -------------------------------------------------------------------------------- 1 | #include "Track.h" 2 | 3 | #pragma warning(disable : 4244) 4 | 5 | ////////////////////////////////////////////////////////////////////// 6 | // Construction/Destruction 7 | ////////////////////////////////////////////////////////////////////// 8 | 9 | /* 10 | #define TENS 1.0 11 | #define BIAS 1.0 12 | #define CONT 1.0 13 | */ 14 | #define TENS 0.0 15 | #define BIAS 0.0 16 | #define CONT 0.0 17 | #define LOOP 1 18 | #define MAXKEY 9999 19 | 20 | CTrack::CTrack() 21 | { 22 | } 23 | 24 | CTrack::~CTrack() 25 | { 26 | 27 | } 28 | 29 | float hermite(float p1,float p2,float r1,float r2,float t) { 30 | return p1*( 2.0*(t*t*t)-3.0*(t*t)+1.0)+ 31 | r1*( (t*t*t)-2.0*(t*t)+t )+ 32 | p2*(-2.0*(t*t*t)+3.0*(t*t) )+ 33 | r2*( (t*t*t)- (t*t) ); 34 | } 35 | 36 | void CTrack::InitVectors() { 37 | int i; 38 | if (numkey==1) return; 39 | for (i=0; i=frame) && (keys[0].frame>=0))) 112 | return keys[0].data; 113 | 114 | for (x=0; xvertexlist[o1->polygonlist[p1].v1].d; 17 | vector3 b1 = o1->vertexlist[o1->polygonlist[p1].v2].d; 18 | vector3 c1 = o1->vertexlist[o1->polygonlist[p1].v3].d; 19 | vector3 a2 = o2->vertexlist[o2->polygonlist[p2].v1].generated; 20 | vector3 b2 = o2->vertexlist[o2->polygonlist[p2].v2].generated; 21 | vector3 c2 = o2->vertexlist[o2->polygonlist[p2].v3].generated; 22 | 23 | vector3 v1min,v1max,v2min,v2max; 24 | v1min.b.x=min(min(a1.b.x,b1.b.x),c1.b.x); 25 | v1min.b.y=min(min(a1.b.y,b1.b.y),c1.b.y); 26 | v1min.b.z=min(min(a1.b.z,b1.b.z),c1.b.z); 27 | v1max.b.x=max(max(a1.b.x,b1.b.x),c1.b.x); 28 | v1max.b.y=max(max(a1.b.y,b1.b.y),c1.b.y); 29 | v1max.b.z=max(max(a1.b.z,b1.b.z),c1.b.z); 30 | v2min.b.x=min(min(a2.b.x,b2.b.x),c2.b.x); 31 | v2min.b.y=min(min(a2.b.y,b2.b.y),c2.b.y); 32 | v2min.b.z=min(min(a2.b.z,b2.b.z),c2.b.z); 33 | v2max.b.x=max(max(a2.b.x,b2.b.x),c2.b.x); 34 | v2max.b.y=max(max(a2.b.y,b2.b.y),c2.b.y); 35 | v2max.b.z=max(max(a2.b.z,b2.b.z),c2.b.z); 36 | 37 | //if (boxintersect(v1min,v1max,v2min,v2max)) 38 | { 39 | vector3 v1,v2; 40 | *intersect = tri_tri_intersect_with_isectline(a1.a,b1.a,c1.a, 41 | a2.a,b2.a,c2.a, 42 | coplanar, 43 | v1.a,v2.a); 44 | result.a=v1; 45 | result.b=v2; 46 | } 47 | return result; 48 | } 49 | 50 | void obj_boolean(object *o1, object*o2, int function) 51 | { 52 | matrix m; 53 | memcpy(m,o1->xformmatrix,sizeof(matrix)); 54 | m_invert(m); 55 | matrix o2bckup; 56 | memcpy(o2bckup,o2->xformmatrix,sizeof(matrix)); 57 | obj_transform(o2,m); 58 | memcpy(o2->xformmatrix,o2bckup,sizeof(matrix)); 59 | //o1 default poziciot vagjuk o2 aktualis pozicio 60 | 61 | int o1pnum=o1->polynum, o2pnum=o2->polynum; 62 | pathedgelist *obj1paths = new pathedgelist[o1->polynum], *obj2paths = new pathedgelist[o2->polynum]; 63 | 64 | /*object *dummy1=newobject(),*dummy2=newobject(); 65 | dummy1->polygonlist = new polygon [o1->polynum]; 66 | dummy2->polygonlist = new polygon [o2->polynum]; 67 | memcpy(dummy1->polygonlist,o1->polygonlist,sizeof(polygon)*o1->polynum); 68 | memcpy(dummy2->polygonlist,o2->polygonlist,sizeof(polygon)*o2->polynum);*/ 69 | 70 | int coplanar=1; 71 | for (int x=o1->polynum-1;x>=0;x--) 72 | for (int y=o2->polynum-1;y>=0;y--) 73 | { 74 | coplanar=1; 75 | pathedge section; 76 | if (tri_tri_intersect_with_isectline(o1->vertexlist[o1->polygonlist[x].v1].d.a,o1->vertexlist[o1->polygonlist[x].v2].d.a,o1->vertexlist[o1->polygonlist[x].v3].d.a, 77 | o2->vertexlist[o2->polygonlist[y].v1].d.a,o2->vertexlist[o2->polygonlist[y].v2].d.a,o2->vertexlist[o2->polygonlist[y].v3].d.a, 78 | &coplanar, 79 | section.a.a,section.b.a) && coplanar) 80 | { 81 | char ss[256]; 82 | sprintf(ss,"%d",coplanar); 83 | MessageBox( 0, ss, "HelloWorld", MB_OK ); 84 | addvertex(o1,section.a.b.x,section.a.b.y,section.a.b.z); 85 | addvertex(o1,section.b.b.x,section.b.b.y,section.b.b.z); 86 | addpolygon(o1,o1->vertexnum-2,o1->vertexnum-1,o1->vertexnum-1,dd3d_flatshade); 87 | } 88 | } 89 | obj_transform(o1,o1->xformmatrix); 90 | obj_transform(o2,o2->xformmatrix); 91 | } 92 | 93 | -------------------------------------------------------------------------------- /aDDict/filemenu.h: -------------------------------------------------------------------------------- 1 | #ifndef __filemenu__ 2 | #define __filemenu__ 3 | 4 | #include "ddgui.h" 5 | 6 | void filemenu(int mode); 7 | 8 | #endif -------------------------------------------------------------------------------- /aDDict/findfile.cpp: -------------------------------------------------------------------------------- 1 | #include "findfile.h" 2 | 3 | tfilelist *findfile(const char *path) 4 | { 5 | BOOL fFinished = FALSE; 6 | 7 | tfilelist *list = NULL; 8 | tfilelist *newlist = NULL; 9 | tfilelist *check = NULL; 10 | tfilelist *check2 = NULL; 11 | 12 | HANDLE hSearch; 13 | WIN32_FIND_DATA FileData; 14 | 15 | hSearch = FindFirstFile(path, &FileData); 16 | if (hSearch != INVALID_HANDLE_VALUE) 17 | { 18 | while (!fFinished) 19 | { 20 | if (StrCmp(FileData.cFileName,".") && StrCmp(FileData.cFileName,"..")) 21 | { 22 | newlist = new tfilelist[1]; 23 | memset(newlist,0,sizeof(tfilelist)); 24 | newlist->filedata=FileData; 25 | 26 | check = list; 27 | check2 = list; 28 | 29 | while ( (check!=NULL) && ( StrCmp(check->filedata.cFileName,FileData.cFileName)<0 )) 30 | { 31 | check2=check; 32 | check=check->next; 33 | } 34 | 35 | if (list == NULL) 36 | { 37 | newlist->next=NULL; 38 | list=newlist; 39 | } 40 | else 41 | if (check!=check2) 42 | { 43 | newlist->next=check2->next; 44 | check2->next=newlist; 45 | } 46 | else 47 | { 48 | newlist->next=list; 49 | list=newlist; 50 | } 51 | } 52 | fFinished = !FindNextFile(hSearch, &FileData); 53 | 54 | } 55 | 56 | } 57 | 58 | return list; 59 | } 60 | 61 | int filenum(tfilelist *list) 62 | { 63 | tfilelist *buffer=list; 64 | int cntr = 0; 65 | while (list!=NULL) 66 | { 67 | cntr++; 68 | list=list->next; 69 | } 70 | return cntr; 71 | } -------------------------------------------------------------------------------- /aDDict/findfile.h: -------------------------------------------------------------------------------- 1 | #ifndef __findfile__ 2 | #define __findfile__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | struct tfilelist { 9 | WIN32_FIND_DATA filedata; 10 | tfilelist *next; 11 | }; 12 | 13 | tfilelist *findfile(const char *path); 14 | int filenum(tfilelist *list); 15 | 16 | #endif -------------------------------------------------------------------------------- /aDDict/fmod.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/fmod.dll -------------------------------------------------------------------------------- /aDDict/fmod/Mixer.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_H_ 14 | #define _MIXER_H_ 15 | 16 | #define FSOUND_MIXDIR_FORWARDS 1 17 | #define FSOUND_MIXDIR_BACKWARDS 2 18 | 19 | #define FSOUND_OUTPUTBUFF_END 0 20 | #define FSOUND_SAMPLEBUFF_END 1 21 | #define FSOUND_VOLUMERAMP_END 2 22 | 23 | #endif -------------------------------------------------------------------------------- /aDDict/fmod/Winmm.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/fmod/Winmm.lib -------------------------------------------------------------------------------- /aDDict/fmod/minifmod.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MINIFMOD.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | //========================================================================================== 14 | // MINIFMOD Main header file. Copyright (c), FireLight Multimedia 2000. 15 | // Based on FMOD, copyright (c), FireLight Multimedia 2000. 16 | //========================================================================================== 17 | 18 | #ifndef _MINIFMOD_H_ 19 | #define _MINIFMOD_H_ 20 | 21 | //=============================================================================================== 22 | //= DEFINITIONS 23 | //=============================================================================================== 24 | 25 | // fmod defined types 26 | typedef struct FMUSIC_MODULE FMUSIC_MODULE; 27 | 28 | //=============================================================================================== 29 | //= FUNCTION PROTOTYPES 30 | //=============================================================================================== 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | // ================================== 37 | // Initialization / Global functions. 38 | // ================================== 39 | typedef void (*SAMPLELOADCALLBACK)(void *buff, int lenbytes, int numbits, int instno, int sampno); 40 | typedef void (*FMUSIC_CALLBACK)(FMUSIC_MODULE *mod, unsigned char param); 41 | 42 | // this must be called before FSOUND_Init! 43 | void FSOUND_File_SetCallbacks(unsigned int (*OpenCallback)(char *name), 44 | void (*CloseCallback)(unsigned int handle), 45 | int (*ReadCallback)(void *buffer, int size, unsigned int handle), 46 | void (*SeekCallback)(unsigned int handle, int pos, signed char mode), 47 | int (*TellCallback)(unsigned int handle)); 48 | 49 | signed char FSOUND_Init(int mixrate, int vcmmode); 50 | void FSOUND_Close(); 51 | 52 | // ============================================================================================= 53 | // FMUSIC API 54 | // ============================================================================================= 55 | 56 | // Song management / playback functions. 57 | // ===================================== 58 | FMUSIC_MODULE * FMUSIC_LoadSong(char *data, SAMPLELOADCALLBACK sampleloadcallback); 59 | signed char FMUSIC_FreeSong(FMUSIC_MODULE *mod); 60 | signed char FMUSIC_PlaySong(FMUSIC_MODULE *mod, int startorder); 61 | signed char FMUSIC_StopSong(FMUSIC_MODULE *mod); 62 | 63 | // Runtime song information. 64 | // ========================= 65 | //extern int FMUSIC_IsPaused; 66 | int FMUSIC_GetOrder(FMUSIC_MODULE *mod); 67 | int FMUSIC_GetRow(FMUSIC_MODULE *mod); 68 | unsigned int FMUSIC_GetTime(FMUSIC_MODULE *mod); 69 | void FSOUND_SetPause(unsigned int pause); 70 | extern FMUSIC_MODULE * FMUSIC_PlayingSong; 71 | 72 | #ifdef __cplusplus 73 | } 74 | #endif 75 | 76 | #endif 77 | -------------------------------------------------------------------------------- /aDDict/fmod/mixer_clipcopy.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_CLIPCOPY.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_CLIPCOPY_H 14 | #define _MIXER_CLIPCOPY_H 15 | 16 | void FSOUND_MixerClipCopy_Float32(void *dest, void *src, int len); 17 | 18 | #endif -------------------------------------------------------------------------------- /aDDict/fmod/mixer_fpu_ramp.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* MIXER_FPU_RAMP.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _MIXER_FPU_RAMP_H 14 | #define _MIXER_FPU_RAMP_H 15 | 16 | #define FSOUND_VOLUMERAMP_STEPS 128 // at 44.1khz 17 | 18 | void FSOUND_Mixer_FPU_Ramp(void *mixptr, int len, signed char returnaddress); 19 | 20 | extern unsigned int mix_volumerampsteps; 21 | extern float mix_1overvolumerampsteps; 22 | 23 | #endif -------------------------------------------------------------------------------- /aDDict/fmod/system_file.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* SYSTEM_FILE.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _SYSTEM_FILE_H_ 14 | #define _SYSTEM_FILE_H_ 15 | 16 | typedef struct tag_FSOUND_FILE_HANDLE 17 | { 18 | signed char type; 19 | void *fp; 20 | signed char *mem; 21 | int basepos; 22 | unsigned int userhandle; 23 | int length; 24 | } FSOUND_FILE_HANDLE; 25 | 26 | FSOUND_FILE_HANDLE *FSOUND_File_Open(void *data, signed char type, int length); 27 | void FSOUND_File_Close(FSOUND_FILE_HANDLE *handle); 28 | int FSOUND_File_Read(void *buffer, int size, FSOUND_FILE_HANDLE *handle); 29 | void FSOUND_File_Seek(FSOUND_FILE_HANDLE *handle, int pos, signed char mode); 30 | int FSOUND_File_Tell(FSOUND_FILE_HANDLE *handle); 31 | 32 | 33 | extern unsigned int (*FSOUND_File_OpenCallback)(char *name); 34 | extern void (*FSOUND_File_CloseCallback)(unsigned int handle); 35 | extern int (*FSOUND_File_ReadCallback)(void *buffer, int size, unsigned int handle); 36 | extern void (*FSOUND_File_SeekCallback)(unsigned int handle, int pos, signed char mode); 37 | extern int (*FSOUND_File_TellCallback)(unsigned int handle); 38 | 39 | #endif -------------------------------------------------------------------------------- /aDDict/fmod/system_memory.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************/ 2 | /* SYSTEM_MEMORY.H */ 3 | /* ---------------- */ 4 | /* MiniFMOD public source code release. */ 5 | /* This source is provided as-is. Firelight Multimedia will not support */ 6 | /* or answer questions about the source provided. */ 7 | /* MiniFMOD Sourcecode is copyright (c) 2000, Firelight Multimedia. */ 8 | /* MiniFMOD Sourcecode is in no way representative of FMOD 3 source. */ 9 | /* Firelight Multimedia is a registered business name. */ 10 | /* This source must not be redistributed without this notice. */ 11 | /******************************************************************************/ 12 | 13 | #ifndef _SYSTEM_MEMORY_H_ 14 | #define _SYSTEM_MEMORY_H_ 15 | 16 | // include your system's header here 17 | #include 18 | 19 | // redefine here 20 | #define FSOUND_Memory_Free(_ptr) free(_ptr) 21 | #define FSOUND_Memory_Alloc(_len) calloc(_len, 1) 22 | #define FSOUND_Memory_Calloc(_len) calloc(_len, 1) 23 | #define FSOUND_Memory_Realloc(_ptr, _len) realloc(_ptr, _len) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /aDDict/fmod_errors.h: -------------------------------------------------------------------------------- 1 | #ifndef _FMOD_ERRORS_H 2 | #define _FMOD_ERRORS_H 3 | 4 | static char *FMOD_ErrorString(int errcode) 5 | { 6 | switch (errcode) 7 | { 8 | case FMOD_ERR_NONE: return "No errors"; 9 | case FMOD_ERR_BUSY: return "Cannot call this command after FSOUND_Init. Call FSOUND_Close first."; 10 | case FMOD_ERR_UNINITIALIZED: return "This command failed because FSOUND_Init was not called or called properly"; 11 | case FMOD_ERR_PLAY: return "Playing the sound failed."; 12 | case FMOD_ERR_INIT: return "Error initializing output device."; 13 | case FMOD_ERR_ALLOCATED: return "The output device is already in use and cannot be reused."; 14 | case FMOD_ERR_OUTPUT_FORMAT: return "Soundcard does not support the features needed for this soundsystem (16bit stereo output)"; 15 | case FMOD_ERR_COOPERATIVELEVEL: return "Error setting cooperative level for hardware."; 16 | case FMOD_ERR_CREATEBUFFER: return "Error creating hardware sound buffer."; 17 | case FMOD_ERR_FILE_NOTFOUND: return "File not found"; 18 | case FMOD_ERR_FILE_FORMAT: return "Unknown file format"; 19 | case FMOD_ERR_FILE_BAD: return "Error loading file"; 20 | case FMOD_ERR_MEMORY: return "Not enough memory "; 21 | case FMOD_ERR_VERSION: return "The version number of this file format is not supported"; 22 | case FMOD_ERR_INVALID_PARAM: return "An invalid parameter was passed to this function"; 23 | case FMOD_ERR_NO_EAX: return "Tried to use an EAX command on a non EAX enabled channel or output."; 24 | case FMOD_ERR_CHANNEL_ALLOC: return "Failed to allocate a new channel"; 25 | case FMOD_ERR_RECORD: return "Recording not supported on this device"; 26 | case FMOD_ERR_MEDIAPLAYER: return "Required Mediaplayer codec is not installed"; 27 | 28 | default : return "Unknown error"; 29 | }; 30 | }; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /aDDict/fmodvc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict/fmodvc.lib -------------------------------------------------------------------------------- /aDDict/introeditor.h: -------------------------------------------------------------------------------- 1 | #ifndef __introeditor__ 2 | #define __introeditor__ 3 | 4 | #include "windows.h" 5 | #include "gl\gl.h" 6 | #include "gl\glu.h" 7 | #include "addict.h" 8 | #include "ddgui.h" 9 | #include "ddwindow.h" 10 | #include "fmod\minifmod.h" 11 | 12 | #define layer2d 1 13 | #define layer3d 2 14 | #define cleargl 3 15 | #define rendertotext 4 16 | #define feedback 5 17 | #define grideffect 6 18 | 19 | struct introtimeline 20 | { 21 | int introlength; 22 | }; 23 | 24 | struct event 25 | { 26 | char name[40]; 27 | int startframe,endframe; // 28 | int eventtype; // 29 | float startrectx,startrecty,startrectxrez,startrectyrez; // 30 | float endrectx,endrecty,endrectxrez,endrectyrez; // 31 | int pass; // 32 | GLuint blendfunc1,blendfunc2;// 33 | float startcol[4],endcol[4];// 34 | bool textured;// 35 | int texxtile, texytile; // 36 | int sceneid, cameraid, animid; // 37 | float camerastart, cameraend, animstart, animend; // 38 | int texture; // 39 | bool clearzbuffer; 40 | bool clearscreen; 41 | 42 | int menu1,menu2; 43 | int icamselected,icampos,isceneselected,iscenepos,ianimselected,ianimpos; 44 | scene *iscene; 45 | cameraanimation *icam; 46 | sceneobjanim *ianim; 47 | int matselected, matstart; 48 | GLuint mattexture; 49 | 50 | int startrectx1,startrecty1,startrectx2,startrecty2; // 51 | int endrectx1,endrecty1,endrectx2,endrecty2; // 52 | 53 | int effect,param1,param2,param3; 54 | float param4,param5,param6; 55 | 56 | event *next; 57 | }; 58 | 59 | extern event *eventlist; 60 | 61 | void sortevents(); 62 | void initintroeditor(); 63 | void introeditor(int mode); 64 | 65 | #endif -------------------------------------------------------------------------------- /aDDict/keyframergui.h: -------------------------------------------------------------------------------- 1 | #ifndef __keyframergui__ 2 | #define __keyframergui__ 3 | 4 | #include "addict.h" 5 | #include "modellgui.h" 6 | 7 | extern objectanimation *actualanim; 8 | extern cameraanimation *actualcameraanim; 9 | extern camera actualcamera; 10 | extern int passcounter; 11 | 12 | objectanimation *findobjanim(object *o, int animnum); 13 | void countselectcenter(); 14 | void initkeyframergui(); 15 | void keyframergui(int mode); 16 | 17 | #endif -------------------------------------------------------------------------------- /aDDict/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by aDDict.rc 4 | // 5 | #define ADDICTICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /aDDict/vectors.h: -------------------------------------------------------------------------------- 1 | #ifndef __vectors__ 2 | #define __vectors__ 3 | 4 | #include 5 | #include 6 | 7 | typedef float matrix[4][4]; 8 | 9 | union vector2 10 | { 11 | float a[2]; 12 | struct { 13 | float x,y; 14 | }b; 15 | }; 16 | 17 | union vector3 18 | { 19 | float a[3]; 20 | struct { 21 | float x,y,z; 22 | }b; 23 | }; 24 | 25 | union vector4 26 | { 27 | float a[4]; 28 | struct { 29 | float x,y,z,w; 30 | }b; 31 | }; 32 | 33 | 34 | struct quaternion 35 | { 36 | float w; 37 | vector3 a; 38 | }; 39 | 40 | typedef vector3 vector; 41 | 42 | 43 | void v3_mults(vector3 v, float r, vector3 &d); 44 | float v3_len(vector3 v); 45 | 46 | 47 | void v3_make(float ax, float ay, float az , vector3 &d); 48 | void v3_normalize(vector3 v, vector3 &d); 49 | 50 | void m_mults(matrix m, float r, matrix &d); 51 | void m_diadic3(vector3 v1, vector3 v2, matrix &m); 52 | void m_cross(vector3 v, matrix &m); 53 | void m_add(matrix m1, matrix m2, matrix &m); 54 | 55 | 56 | void m_identity(matrix &m); 57 | void m_mult(matrix m1, matrix m2, matrix &m); 58 | void m_xpose(float ax,float ay,float az,matrix &m); 59 | void m_rotate(float ax,float ay,float az,float phi,matrix &m); 60 | void m_scale(float ax, float ay, float az, matrix &m); 61 | void m_invert(matrix &mat); 62 | void m_invert(matrix m,matrix &dest); 63 | 64 | vector3 vect_osszeadas( vector3 a, vector3 b); 65 | vector3 vect_kivonas( vector3 a, vector3 b); 66 | vector3 egyseg( vector3 a); 67 | void m_xformd(matrix m,vector3 v, vector3 &d); 68 | void m_xform3(matrix m, vector3 v, vector3 &d); 69 | 70 | vector3 cross(vector3 b, vector3 c); 71 | vector3 vect_skalarszorzas(vector3 b, float a); 72 | float dotproduct(vector3 a, vector3 b); 73 | 74 | void m_revxpose(const matrix m, vector3 &v); 75 | void m_revscale(const matrix m, vector3 &v); 76 | void m_revrotate(const matrix m, vector3 &v, float &phi); 77 | 78 | quaternion axisangle2quaternion(vector3 axis, float angle); 79 | void quaternion2axisangle(quaternion q, vector3 &axis, float &angle); 80 | quaternion quaternionmult(quaternion a, quaternion b); 81 | 82 | #endif -------------------------------------------------------------------------------- /aDDict2/AseParser.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | void ParseASE(char *FileName); -------------------------------------------------------------------------------- /aDDict2/ChunkHeaders.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define TEX0 0x30584554 4 | #define TEX1 0x31584554 5 | #define SCN0 0x304E4353 6 | #define SCN1 0x314E4353 7 | #define OBJ0 0x304A424F 8 | #define OBJ1 0x314A424F 9 | #define OBJ2 0x324A424F 10 | #define OBJ3 0x334A424F 11 | #define OBJ4 0x344A424F 12 | #define OBJ5 0x354A424F 13 | #define EMI0 0x30494D45 14 | #define END0 0x30444E45 15 | #define VXS0 0x30535856 16 | #define PLS0 0x30534C50 17 | #define BRS0 0x30535242 18 | #define WRL0 0x304C5257 19 | #define WRL1 0x314C5257 20 | #define WRL2 0x324C5257 21 | #define WRO0 0x304F5257 22 | #define WRO1 0x314F5257 23 | #define WRO2 0x324F5257 24 | #define WRO3 0x334F5257 25 | #define WRO4 0x344F5257 26 | #define WRO5 0x354F5257 27 | #define WRA0 0x30415257 28 | #define WOA0 0x30414F57 29 | #define WOA1 0x31414F57 30 | #define WOA2 0x32414F57 31 | #define CAM0 0x304D4143 32 | #define EVT0 0x30545645 33 | #define EVT1 0x31545645 34 | #define EVT2 0x32545645 35 | #define MAP0 0x3050414D 36 | #define CLN0 0x304E4C43 37 | #define MSH0 0x3048534D 38 | #define MSH1 0x3148534D 39 | -------------------------------------------------------------------------------- /aDDict2/CommonGUIFunctions.cpp: -------------------------------------------------------------------------------- 1 | #include "CommonGUIFunctions.h" 2 | 3 | void __stdcall GUI_CheckByteSwitch(cINTERFACE* Interface, int ButtonId) 4 | { 5 | Interface->ItemList[ButtonId].ButtonPushed=(*(bool*)Interface->ItemList[ButtonId].data); 6 | } 7 | 8 | 9 | void __stdcall Scroller_SelectItem(cINTERFACE* ScrollerInterface, int ScrollerID) 10 | { 11 | ScrollerInterface->ItemList[ScrollerID].SelectedItem= 12 | 13 | (min(max(my,ScrollerInterface->ItemList[ScrollerID].y1),ScrollerInterface->ItemList[ScrollerID].y2-11)-ScrollerInterface->ItemList[ScrollerID].y1) 14 | 15 | /11+ScrollerInterface->ItemList[ScrollerID].StartItem; 16 | } 17 | 18 | int CountSubItems(ITEM *List) 19 | { 20 | int i=0; 21 | if (List->SubOpened) i+=List->SubItemNum; 22 | ITEM *SubItemList=List->SubItems; 23 | while (SubItemList) 24 | { 25 | i+=CountSubItems(SubItemList); 26 | SubItemList=SubItemList->Next; 27 | } 28 | 29 | return i; 30 | } 31 | 32 | void __stdcall SubOpenClose(cINTERFACE* ScrollerInterface, int ScrollerID) 33 | { 34 | if (ScrollerInterface->ClickedItem) 35 | { 36 | bool a=ScrollerInterface->ClickedItem->SubOpened; 37 | ScrollerInterface->ClickedItem->SubOpened=true; 38 | int sub=CountSubItems(ScrollerInterface->ClickedItem); 39 | ScrollerInterface->ClickedItem->SubOpened=a; 40 | if (a) ScrollerInterface->ItemList[ScrollerID].ItemNum-=sub; else 41 | ScrollerInterface->ItemList[ScrollerID].ItemNum+=sub; 42 | if (ScrollerInterface->ClickedNumItemList[ScrollerID].SelectedItem) 43 | { 44 | if (a) ScrollerInterface->ItemList[ScrollerID].SelectedItem-=sub; else 45 | ScrollerInterface->ItemList[ScrollerID].SelectedItem+=sub; 46 | 47 | } 48 | if (ScrollerInterface->ClickedItem->SubItemNum) 49 | ScrollerInterface->ClickedItem->SubOpened=!ScrollerInterface->ClickedItem->SubOpened; 50 | WaitMiddleButton=true; 51 | } 52 | } 53 | 54 | 55 | ITEM *ScrollerFindItem(ITEMLIST *List, int Number) 56 | { 57 | ITEM *ItemList=List->List; 58 | for (int x=0; xNext; 59 | return ItemList; 60 | } 61 | 62 | void __stdcall Scroller_SelectOnlyThis(cINTERFACE* ScrollerInterface, int ScrollerID) 63 | { 64 | ScrollerInterface->ItemList[ScrollerID].SelectedItem=(min(max(my,ScrollerInterface->ItemList[ScrollerID].y1),ScrollerInterface->ItemList[ScrollerID].y2-11)-ScrollerInterface->ItemList[ScrollerID].y1)/11+ScrollerInterface->ItemList[ScrollerID].StartItem; 65 | } 66 | 67 | void SetupFileList(ITEMLIST *List, char *FileMask) 68 | { 69 | tfilelist *FileList=findfile(FileMask); 70 | for (tfilelist *Buffer=FileList;Buffer;Buffer=Buffer->next) 71 | { 72 | List->AddItem(Buffer->filedata.cFileName,NULL,Scroller_SelectOnlyThis,nop,nop); 73 | } 74 | } -------------------------------------------------------------------------------- /aDDict2/CommonGUIFunctions.h: -------------------------------------------------------------------------------- 1 | #ifndef __CommonGUIFunctions__ 2 | #define __CommonGUIFunctions__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include "GUIInterface.h" 7 | #include "FindFile.h" 8 | 9 | void __stdcall Scroller_SelectItem(cINTERFACE* ScrollerInterface, int ScrollerID); 10 | void __stdcall SubOpenClose(cINTERFACE* ScrollerInterface, int ScrollerID); 11 | ITEM *ScrollerFindItem(ITEMLIST *List, int Number); 12 | void __stdcall Scroller_SelectOnlyThis(cINTERFACE* ScrollerInterface, int ScrollerID); 13 | void SetupFileList(ITEMLIST *List, char *FileMask); 14 | void __stdcall GUI_CheckByteSwitch(cINTERFACE* Interface, int ButtonId); 15 | 16 | #endif -------------------------------------------------------------------------------- /aDDict2/Data/projects/4players_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/4players_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/4players_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/4players_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/DOF_Hall.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/DOF_Hall.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/beyond_final.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/beyond_final.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/beyond_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/beyond_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/binary_ati_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/binary_ati_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/binary_nvidia_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/binary_nvidia_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/binary_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/binary_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/buenzli_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/buenzli_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/buenzli_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/buenzli_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/chaos_theory_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/chaos_theory_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/chaos_theory_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/chaos_theory_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/memento_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/memento_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/memento_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/memento_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/nemesis_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/nemesis_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/nemesis_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/nemesis_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/sns_precalc.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/sns_precalc.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/sns_release.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/sns_release.dmo -------------------------------------------------------------------------------- /aDDict2/Data/projects/tutorial1.dmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/projects/tutorial1.dmo -------------------------------------------------------------------------------- /aDDict2/Data/scenes/cnslogo.scn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/scenes/cnslogo.scn -------------------------------------------------------------------------------- /aDDict2/Data/textures/BUENZLIJAPAN.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/BUENZLIJAPAN.tex -------------------------------------------------------------------------------- /aDDict2/Data/textures/BlueMarble.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/BlueMarble.tex -------------------------------------------------------------------------------- /aDDict2/Data/textures/Galaxies.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/Galaxies.tex -------------------------------------------------------------------------------- /aDDict2/Data/textures/Planet.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/Planet.tex -------------------------------------------------------------------------------- /aDDict2/Data/textures/buggy.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/buggy.tex -------------------------------------------------------------------------------- /aDDict2/Data/textures/leaves.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/leaves.tex -------------------------------------------------------------------------------- /aDDict2/Data/textures/protozoa3.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Data/textures/protozoa3.tex -------------------------------------------------------------------------------- /aDDict2/Documentation/aDDict2_English_Users_Guide.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Documentation/aDDict2_English_Users_Guide.chm -------------------------------------------------------------------------------- /aDDict2/Documentation/aDDict2_Magyar_Felhasznaloi_Kezikonyv.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Documentation/aDDict2_Magyar_Felhasznaloi_Kezikonyv.chm -------------------------------------------------------------------------------- /aDDict2/EffectTemplates.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "memtrack.h" 4 | 5 | #include "texgen2.h" 6 | #include "GUIInterface.h" 7 | #include "IntroEditor.h" 8 | 9 | #define EFFECT_BYTE 0 10 | #define EFFECT_INT 1 11 | #define EFFECT_FLOAT 2 12 | #define EFFECT_RTXT 3 13 | #define EFFECT_VARFUNCTION 4 14 | 15 | #define EFFECT_BOOL 5 16 | #define EFFECT_MATSEL 6 17 | #define EFFECT_BLENDSEL 7 18 | #define EFFECT_SCENESEL 8 19 | #define EFFECT_ANIMSEL 9 20 | #define EFFECT_CAMSEL 10 21 | #define EFFECT_CNSTFUNCTION 11 22 | #define EFFECT_VARTEXT 12 23 | #define EFFECT_CONSTTEXT 13 24 | 25 | struct EVENT; 26 | 27 | typedef void (WINAPI *EFFECTFUNCTIONCALLBACK) (EVENT*); 28 | 29 | struct EFFECTPARAMETERTYPE 30 | { 31 | int Type; 32 | int iMin,iMax,iDefault; 33 | float fMin,fMax,fDefault; 34 | char *Text,*ToolTip; 35 | int Color; 36 | GUICALLBACK Function; 37 | }; 38 | 39 | 40 | class EFFECTTEMPLATEDESCRIPTOR 41 | { 42 | void AddItem(); 43 | public: 44 | int ItemNum; 45 | int ItemCapacity; 46 | EFFECTPARAMETERTYPE *ItemList; 47 | EFFECTTEMPLATEDESCRIPTOR() {ItemNum=0; ItemCapacity=0; ItemList=NULL;} 48 | ~EFFECTTEMPLATEDESCRIPTOR() {delete ItemList;} 49 | 50 | void AddByteBar(unsigned char Min, unsigned char Max, unsigned char Default, int Color, char *Text, char *ToolTip); // byte 51 | void AddIntBar(int Min, int Max, int Default, int Color, char *Text, char *ToolTip); // int 52 | void AddFloatBar(float Min, float Max, float Default, int Color, char *Text, char *ToolTip); // float 53 | void AddRenderTextureSelector(); //byte 54 | void AddBooleanButton(int t1, int t2, bool Default, char *Text, char *ToolTip); // byte 55 | void AddVariableFunction(int t1, int t2, char *Text, char * ToolTip, GUICALLBACK Function); // none 56 | void AddVariableText(int Pos, char *Text); 57 | void AddConstantText(int Pos, char *Text); 58 | 59 | void AddMaterialSelector(); //void* 60 | void AddBlendModeSelector(); //GLuint*2 61 | void AddSceneSelector(); //void* 62 | void AddAnimSelector(); //void* 63 | void AddCameraSelector(); //void* 64 | void AddConstantFunction(int t1, int t2, char *Text, char * ToolTip, GUICALLBACK Function); // none 65 | }; 66 | 67 | struct DEFAULTEVENTDATA 68 | { 69 | float TimePos; 70 | int x1,y1,x2,y2; 71 | bool OnScreenInLastFrame; 72 | bool SecondPass; 73 | int ActualFrame; 74 | }; 75 | 76 | typedef void (WINAPI *EFFECTCALLBACK) (DEFAULTEVENTDATA*, void*); 77 | 78 | struct EFFECT 79 | { 80 | EFFECTTEMPLATEDESCRIPTOR *TemplateDescriptor; 81 | EFFECTCALLBACK EffectProc; 82 | float r,g,b; 83 | int DataSize; 84 | int Type; 85 | ITEM *ListItem; 86 | }; 87 | 88 | extern ITEMLIST *EffectList; 89 | extern cINTERFACE *EventParameterInterface; 90 | 91 | void RegisterEffects(); 92 | void AdjustGUIToEvent(EVENT *Event); 93 | 94 | -------------------------------------------------------------------------------- /aDDict2/FileIO.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "memtrack.h" 4 | 5 | #include "addict2.h" 6 | #include "GUIinterface.h" 7 | #include "CommonGUIFunctions.h" 8 | #include "MinimalExport.h" 9 | 10 | struct ChunkHeader 11 | { 12 | int ID; 13 | int Size; 14 | }; 15 | 16 | extern float UndoStatus2; 17 | 18 | void BuildFileMenuGui(cINTERFACE *FileMenu); 19 | void __stdcall GUI_LoadZoom3Scene(cINTERFACE* Interface, int ButtonId); 20 | void __stdcall SaveScene(cINTERFACE* Interface, int ButtonId); 21 | void __stdcall ImportScene(cINTERFACE* Interface, int ButtonId); 22 | void loadsttascene(SCENE &scn, const char *filename); 23 | void loadwdo(SCENE &scn, const char *filename); 24 | -------------------------------------------------------------------------------- /aDDict2/GUIItemList.h: -------------------------------------------------------------------------------- 1 | #ifndef __GUIITEMLIST__ 2 | #define __GUIITEMLIST__ 3 | 4 | #include "memtrack.h" 5 | 6 | class cINTERFACE; 7 | class ITEM; 8 | typedef void (WINAPI *GUICALLBACK) (cINTERFACE*, int); 9 | 10 | struct CHILD 11 | { 12 | ITEM *Child; 13 | CHILD *Next; 14 | }; 15 | 16 | class ITEM 17 | { 18 | public: 19 | char *Name; 20 | void *Data; 21 | ITEM *Next,*Prev,*SubItems,*LastSub; 22 | CHILD *ParentList,*ChildList; 23 | bool Selected,OldSelected; 24 | bool Hidden; 25 | bool SubOpened; 26 | int SubItemNum; 27 | int Num; 28 | cINTERFACE *SelectedInterface; 29 | GUICALLBACK OnLeftClick,OnRightClick,OnMiddleClick; 30 | int ID; 31 | ITEM() { 32 | Name=""; 33 | Data=NULL; 34 | Next=NULL; 35 | Prev=NULL; 36 | SubItems=NULL; 37 | LastSub=NULL; 38 | Selected=false; 39 | SubOpened=false; 40 | Hidden=false; 41 | ChildList=NULL; 42 | ParentList=NULL; 43 | SubItemNum=0; 44 | SelectedInterface=NULL; 45 | } 46 | ITEM *AddSubItem(char *Name, void *Data, GUICALLBACK OnLeft, GUICALLBACK OnMiddle, GUICALLBACK OnRight) 47 | { 48 | ITEM *Buffer = new ITEM(); 49 | memset(Buffer,0,sizeof(ITEM)); 50 | Buffer->Prev=LastSub; 51 | Buffer->Name=Name; 52 | Buffer->Data=Data; 53 | Buffer->OnLeftClick=OnLeft; 54 | Buffer->OnRightClick=OnRight; 55 | Buffer->OnMiddleClick=OnMiddle; 56 | 57 | SubItemNum++; 58 | 59 | if (LastSub) 60 | { 61 | Buffer->Num=LastSub->Num+1; 62 | LastSub->Next=Buffer; 63 | } 64 | else 65 | { 66 | Buffer->Num=0; 67 | SubItems=Buffer; 68 | } 69 | LastSub=Buffer; 70 | return Buffer; 71 | } 72 | void AddChild(ITEM *Item) 73 | { 74 | CHILD *c=new CHILD; 75 | c->Next=ChildList; 76 | c->Child=Item; 77 | ChildList=c; 78 | 79 | c=new CHILD; 80 | c->Next=Item->ParentList; 81 | c->Child=this; 82 | Item->ParentList=c; 83 | } 84 | }; 85 | 86 | class ITEMLIST 87 | { 88 | public: 89 | ITEM *List,*Last; 90 | 91 | int ItemNum; 92 | 93 | ITEMLIST() {List = NULL; Last = NULL; ItemNum=0;} 94 | ITEM *AddItem(char *Name, void *Data, GUICALLBACK OnLeft, GUICALLBACK OnMiddle, GUICALLBACK OnRight) 95 | { 96 | ITEM *Buffer = new ITEM(); 97 | memset(Buffer,0,sizeof(Buffer)); 98 | 99 | Buffer->Prev=Last; 100 | Buffer->Name=Name; 101 | Buffer->Data=Data; 102 | Buffer->OnLeftClick=OnLeft; 103 | Buffer->OnRightClick=OnRight; 104 | Buffer->OnMiddleClick=OnMiddle; 105 | 106 | ItemNum++; 107 | 108 | if (Last) 109 | { 110 | Buffer->Num=Last->Num+1; 111 | Last->Next=Buffer; 112 | } 113 | else 114 | { 115 | Buffer->Num=0; 116 | List=Buffer; 117 | } 118 | Last=Buffer; 119 | return Buffer; 120 | } 121 | void DeleteSelected() 122 | { 123 | 124 | } 125 | }; 126 | 127 | #endif -------------------------------------------------------------------------------- /aDDict2/Gui/splash.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/Gui/splash.obj -------------------------------------------------------------------------------- /aDDict2/GuiImages.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "gui\buttons_01.h" 4 | #include "gui\buttons_02.h" 5 | #include "gui\buttons_03.h" 6 | #include "gui\buttons_04.h" 7 | #include "gui\buttons_05.h" 8 | #include "gui\buttons_06.h" 9 | #include "gui\buttons_07.h" 10 | #include "gui\buttons_08.h" 11 | -------------------------------------------------------------------------------- /aDDict2/IntroEditor.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "memtrack.h" 4 | 5 | #include "aDDict2.h" 6 | #include "GUIInterface.h" 7 | #include "Texgen2.h" 8 | #include "EffectTemplates.h" 9 | #include "mvx.h" 10 | 11 | struct EFFECT; 12 | 13 | struct EVENT 14 | { 15 | char Name[30]; 16 | int Num; 17 | int StartFrame,EndFrame; 18 | int EventType; 19 | int Pass; 20 | int iParameters[10]; 21 | float fParameters[10]; 22 | int sx1,sy1,sx2,sy2; 23 | int ex1,ey1,ex2,ey2; 24 | EVENT *Next; 25 | EFFECT *Effect; 26 | void *EffectData; 27 | bool OnScreenInLastFrame; 28 | bool Selected; 29 | int GrabFrame; 30 | int GrabPass; 31 | int SF,EF,P; 32 | }; 33 | 34 | struct RENDERTEXTURESLOT 35 | { 36 | GLuint TexImage; 37 | float x1,y1,x2,y2; 38 | }; 39 | 40 | extern RENDERTEXTURESLOT RenderTextures[6]; 41 | 42 | void __stdcall GUI_TimelinerLeftClick(cINTERFACE* Interface, int ButtonId); 43 | void __stdcall GUI_TimelinerMidClick(cINTERFACE* Interface, int ButtonId); 44 | void __stdcall GUI_TimelinerRightClick(cINTERFACE* Interface, int ButtonId); 45 | void __stdcall GUI_TimelinerWheel(cINTERFACE* Interface, int ButtonId); 46 | 47 | void DisplayTimeliner(GUIITEM *I); 48 | void DisplayViewPort(GUIITEM *I); 49 | void BuildIntroEditorGUI(cINTERFACE *IntroEditor); 50 | void ResetWorldParticles(); 51 | 52 | extern EVENT *SelectedEvent,*EventList; 53 | 54 | float Linear(float a, float b, float t); 55 | extern GUIITEM *MainDisplay; 56 | void SetOrthoMode(); 57 | 58 | extern cINTERFACE *EventParameterInterface; 59 | extern bool CamInfo; 60 | 61 | void ArrangeEventList(); 62 | void __stdcall GUI_ViewPortLeftClick(cINTERFACE* Interface, int ButtonId); 63 | void __stdcall GUI_ViewPortMidClick(cINTERFACE* Interface, int ButtonId); 64 | void __stdcall GUI_ViewPortWheel(cINTERFACE* Interface, int ButtonId); 65 | -------------------------------------------------------------------------------- /aDDict2/Layouter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "memtrack.h" 4 | 5 | #include "GUIInterface.h" 6 | #include "modellergui.h" 7 | #include "introeditor.h" 8 | #include "effecttemplates.h" 9 | 10 | extern WORLD *ActualWorld; 11 | extern WORLD *Worlds,*LastWorld; 12 | extern cINTERFACE *LSplineMenu; 13 | 14 | void BuildLayouterGUI(cINTERFACE *Layouter); 15 | 16 | extern cINTERFACE *SplineMenuInterface,*CamList,*CameraSplines,*SplineEditorInterface,*MainLayouterScroller,*ObjList,*LightsList,*PrtList,*SwrldList,*SceneSplines,*ParticleSplines,*LightSplines_,*WorldScroller; 17 | extern ITEMLIST *ObjectSplines,*LightSplines,*EmitterSplines,*CamSplines,*SubWorldSplines,*LightList,*MainAnimList; 18 | extern cINTERFACE *SWorldSplines; 19 | 20 | extern cINTERFACE *LayouterDisplay1; 21 | extern cINTERFACE *LayouterDisplay2; 22 | extern cINTERFACE *LayouterDisplay3; 23 | extern cINTERFACE *LayouterDisplay4; 24 | extern cINTERFACE *VertToggle,*HorToggle,*AddSWorldInterface; 25 | 26 | extern ITEMLIST *WorldListScroller; 27 | 28 | extern int ActualAnim; 29 | 30 | void __stdcall Scroller_SelectOnlyThisWorld(cINTERFACE* ScrollerInterface, int ScrollerID); 31 | void SetEnvironmentToActualWorld(); 32 | void __stdcall GUI_SelectOnlyThisAnim(cINTERFACE* ScrollerInterface, int ScrollerID); 33 | void __stdcall GUI_SelectOnlyThisCam(cINTERFACE* ScrollerInterface, int ScrollerID); 34 | 35 | extern cINTERFACE *MatMenu,*VarMatMenu,*ConstMatMenu; 36 | 37 | void SetCamSplines(); 38 | void SetObjectSplines(); 39 | void SetEmitterSplines(); 40 | void SetSubWorldSplines(); 41 | void SetActualWorldAnimListToMainAnimList(); 42 | void SetActualWorldCamListToMainCamList(); 43 | -------------------------------------------------------------------------------- /aDDict2/LayouterGUI.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "memtrack.h" 4 | 5 | #include "GUIInterface.h" 6 | 7 | void DisplayL3DView(GUIITEM *View); 8 | void DisplaySplineEditor(GUIITEM *View); 9 | void __stdcall GUI_LMiddleClickFollowCursor(cINTERFACE* Interface, int ButtonId); 10 | void __stdcall GUI_L3dViewCheck(cINTERFACE* Interface, int ButtonId); 11 | void __stdcall GUI_L3dLeftClick(cINTERFACE* Interface, int ButtonId); 12 | void __stdcall GUI_L3dRightClick(cINTERFACE* Interface, int ButtonId); 13 | 14 | void __stdcall GUI_SplineEditorLeftClick(cINTERFACE* Interface, int ButtonId); 15 | void __stdcall GUI_SplineEditorRightClick(cINTERFACE* Interface, int ButtonId); 16 | void __stdcall GUI_SplineEditorMidClick(cINTERFACE* Interface, int ButtonId); 17 | void __stdcall GUI_SplineEditorWheel(cINTERFACE* Interface, int ButtonId); 18 | 19 | void __stdcall LCheckTransform(cINTERFACE* Interface, int ScrollerID); 20 | 21 | extern float PlaybackPos; 22 | extern int Xzoom; -------------------------------------------------------------------------------- /aDDict2/MinimalExport.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "memtrack.h" 4 | #include "addict2.h" 5 | #include "GuiInterface.h" 6 | 7 | #ifndef Public_Release 8 | 9 | struct OBJECTDATA 10 | { 11 | unsigned Wireframe :1, 12 | NormalsInverted : 1, 13 | XSwap :1, 14 | YSwap :1, 15 | Swap :1, 16 | Zmask :1, 17 | AEpsilon :1, 18 | 19 | SRCBlend :4, 20 | DSTBlend :3, 21 | 22 | Textured :1, 23 | TexSlot :3, 24 | Envmapped :1, 25 | EnvSlot :3, 26 | Shading :2, 27 | 28 | XTile :1, 29 | YTile :1, 30 | Offx :1, 31 | Offy :1, 32 | Red :1, 33 | Green :1, 34 | Blue :1, 35 | Alpha :1; 36 | }; //32 bit 37 | 38 | struct OBJECTDATA2 39 | { 40 | unsigned BackFace :1, 41 | BackFront:1, 42 | Orientation:1, 43 | Position:1; 44 | }; //4 bit 45 | 46 | struct WORLDOBJECTDATA 47 | { 48 | unsigned Posx :1, 49 | Posy :1, 50 | Posz :1, 51 | Sclx :1, 52 | Scly :1, 53 | Sclz :1, 54 | Quat :1, 55 | EmitterData: 1, 56 | 57 | //innen emitter data csak 58 | 59 | SRCBlend :4, 60 | DSTBlend :3, 61 | 62 | Textured :1, 63 | TexSlot :3, 64 | Tail :1, 65 | Head :1, 66 | ObjectHead:1, 67 | 68 | TailRes1 :4, 69 | TailRes2 :4; 70 | }; //31 bit 71 | 72 | void ExportMinimalProject(char *FileName); 73 | void CreateIncludeList(); 74 | 75 | #endif -------------------------------------------------------------------------------- /aDDict2/ModellerGUI.h: -------------------------------------------------------------------------------- 1 | #ifndef __MODELLERGUI__ 2 | #define __MODELLERGUI__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include "aDDict2.h" 7 | #include "GuiInterface.h" 8 | #include "CommonGUIFunctions.h" 9 | #include "3dengine.h" 10 | #include "ObjectGenerators.h" 11 | 12 | struct LIGHTDATA 13 | { 14 | unsigned char r,g,b,ar,ag,ab,ca,la,qa,cu,ex; 15 | VECTOR3 Pos,Dir; 16 | float Pos4; 17 | }; 18 | 19 | void BuildModellerGUI(cINTERFACE *ModellerGUI); 20 | extern cINTERFACE *ModellerDisplays,*MainScroller,*SceneScroller,*LightMenu; 21 | extern LIGHTDATA LightData[8]; 22 | extern ITEMLIST *ModellFileList,*MaterialList,*CurrentPolySelection; 23 | extern MATERIAL *ActualMaterial; 24 | extern GLuint MaterialHandle; 25 | extern bool PolySelect; 26 | extern int PolySelectObject; 27 | extern bool LoftCreating,SuperShapeCreating; 28 | extern OBJECT *LoftTrack,*LoftShape,*Preview; 29 | 30 | extern cINTERFACE *ModellerDisplay1; 31 | extern cINTERFACE *ModellerDisplay2; 32 | extern cINTERFACE *ModellerDisplay3; 33 | extern cINTERFACE *ModellerDisplay4; 34 | extern cINTERFACE *PolySelectInterface; 35 | extern cINTERFACE *BrushList,*VarMaterialsMenu; 36 | extern cINTERFACE *BrushOperator; 37 | extern cINTERFACE *AddModellInterface; 38 | 39 | extern cINTERFACE *TransformSelector; 40 | extern cINTERFACE *ColorSelector; 41 | extern cINTERFACE* MapXformMenu; 42 | extern cINTERFACE *StatusBar3; 43 | 44 | 45 | extern int BrushSize; 46 | extern int RndMax,RndSeed,RndCount; 47 | extern int MaterialListItemNum; 48 | 49 | extern bool Maptransforming; 50 | extern int MappedObject; 51 | 52 | extern MATRIX MXMatrix; 53 | extern SUPERSHAPE SuperShapeData; 54 | extern bool ModellLighting; 55 | 56 | void __stdcall Scroller_SelectOnlyThisScene(cINTERFACE* ScrollerInterface, int ScrollerID); 57 | void __stdcall Light1(cINTERFACE* ScrollerInterface, int ScrollerID); 58 | void __stdcall Light2(cINTERFACE* ScrollerInterface, int ScrollerID); 59 | void __stdcall Light3(cINTERFACE* ScrollerInterface, int ScrollerID); 60 | void __stdcall Light4(cINTERFACE* ScrollerInterface, int ScrollerID); 61 | void __stdcall Light5(cINTERFACE* ScrollerInterface, int ScrollerID); 62 | void __stdcall Light6(cINTERFACE* ScrollerInterface, int ScrollerID); 63 | void __stdcall Light7(cINTERFACE* ScrollerInterface, int ScrollerID); 64 | void __stdcall Light8(cINTERFACE* ScrollerInterface, int ScrollerID); 65 | void SetEnvironmentToActualScene(); 66 | 67 | extern ITEMLIST *PolySelections; 68 | void __stdcall GUI_SelectPolySelection(cINTERFACE* Interface, int ButtonId); 69 | 70 | void __stdcall GUI_SelectMaterial(cINTERFACE* Interface, int ButtonId); 71 | 72 | void CalculateMapTransform(int MapXformType, int Color, MATRIX MXMatrix, int MappedObject); 73 | void __stdcall CreateLoft(cINTERFACE* Interface, int ScrollerID); 74 | void __stdcall Scroller_SelectOnlyThisArc(cINTERFACE* ScrollerInterface, int ScrollerID); 75 | 76 | 77 | #endif -------------------------------------------------------------------------------- /aDDict2/ObjectGenerators.h: -------------------------------------------------------------------------------- 1 | #ifndef __OBJECTGENERATORS__ 2 | #define __OBJECTGENERATORS__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include "vectors.h" 7 | #include "3dengine.h" 8 | 9 | #define aDDict_BOX 0 10 | #define aDDict_SPHERE 1 11 | #define aDDict_CYLINDER 2 12 | #define aDDict_CONE 3 13 | #define aDDict_PLANE 4 14 | #define aDDict_ARC 5 15 | #define aDDict_LINE 6 16 | #define aDDict_LOFT 7 17 | #define aDDict_ICOSAEDER 8 18 | #define aDDict_DODECAEDER 9 19 | #define aDDict_CIRCLE 10 20 | #define aDDict_CLONE 11 21 | #define aDDict_STORED 12 22 | #define aDDict_FUR 13 23 | #define aDDict_SUPERSHAPE 14 24 | 25 | #define aDDict_MAPXFORM 100 26 | #define aDDict_LINEARSMOOTH 101 27 | #define aDDict_BUTTERFLYSMOOTH 102 28 | #define aDDict_MESHBLUR 103 29 | 30 | void GeneratePrimitive(OBJECT *Object,int PrimitiveID,int Param1, int Param2, int Param3, int Param4, int Param5); 31 | float SuperShapeRad(float m,float n1,float n2,float n3,float a, float b, float phi); 32 | 33 | #endif -------------------------------------------------------------------------------- /aDDict2/TexGenGUI.h: -------------------------------------------------------------------------------- 1 | #ifndef __TexGenGUI__ 2 | #define __TexGenGUI__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include "aDDict2.h" 7 | #include "GUIinterface.h" 8 | #include "CommonGUIFunctions.h" 9 | #include "texgen2.h" 10 | #include "ModellerGui.h" 11 | #include "Layouter.h" 12 | 13 | #define TXGEN_LAYER 0 14 | #define TXGEN_BYTE 1 15 | #define TXGEN_CHANNEL 2 16 | #define TXGEN_BOOLEAN 3 17 | #define TXGEN_RANDSEED 4 18 | #define TXGEN_SELECTOR 5 19 | #define TXGEN_TEXT 6 20 | #define TXGEN_JPEGSELECTOR 7 21 | 22 | #define ATCI ActualTextureCommandInterface 23 | 24 | struct COMMANDPARAMETERTYPE 25 | { 26 | int Type; 27 | int iMinValue, iMaxValue, iDefaultValue, Color; 28 | char *Text,*ToolTip; 29 | }; 30 | 31 | class FILTERTEMPLATE 32 | { 33 | void AddItem(); 34 | public: 35 | int ItemNum; 36 | int ItemCapacity; 37 | COMMANDPARAMETERTYPE *ItemList; 38 | FILTERTEMPLATE() {ItemNum=0; ItemCapacity=0; ItemList=NULL;} 39 | ~FILTERTEMPLATE() {delete ItemList;} 40 | void AddLayerSelector(); // byte 41 | void AddByteBar(unsigned char Min, unsigned char Max, unsigned char Default, int Color, char *Text, char *ToolTip); // byte 42 | void AddChannelSelector(); // byte 43 | void AddBooleanButton(int t1, int t2, char *Text); // byte 44 | void AddRandSeed(); // byte 45 | void AddSelectTool(); // byte 46 | void AddTextButton(); // asciiz 47 | void AddJpegSelector(); // datalength+data 48 | }; 49 | 50 | extern cINTERFACE *EditMenu; 51 | extern TEXTURE *ActualTexture; 52 | extern int SelectedFilter; 53 | extern cINTERFACE *ActualTextureCommandInterface; 54 | extern cINTERFACE *DisplayArea; 55 | extern cINTERFACE *TextureSelect; 56 | extern cINTERFACE *JpegMenu; 57 | 58 | 59 | void BuildTexGenGUI(cINTERFACE *TexGenGUI); 60 | void PerformCommand(TEXTURE *Texture,COMMAND *Command, RGBA *Buffer); 61 | void __stdcall Scroller_SelectOnlyThisTexture(cINTERFACE* ScrollerInterface, int ScrollerID); 62 | void BuildMaterialList(); 63 | void SetEnvironmentToActualTexture(); 64 | 65 | #endif -------------------------------------------------------------------------------- /aDDict2/UberTool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "GuiInterface.h" 3 | 4 | void __stdcall GUI_3dLeftClick(cINTERFACE* Interface, int ButtonId); 5 | void DisplayRotateTool(GUIITEM *View); 6 | void DisplayMoveTool(GUIITEM *View); 7 | void DisplayScaleTool(GUIITEM *View); 8 | -------------------------------------------------------------------------------- /aDDict2/Vectors.h: -------------------------------------------------------------------------------- 1 | #ifndef __VECTORS__ 2 | #define __VECTORS__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include 7 | #include "math.h" 8 | 9 | union VECTOR2 10 | { 11 | float a[2]; 12 | struct { float x,y; }; 13 | struct { float u,v; }; 14 | }; 15 | 16 | union VECTOR3 17 | { 18 | float a[3]; 19 | struct { float x,y,z; }; 20 | }; 21 | 22 | struct QUATERNION 23 | { 24 | VECTOR3 v; 25 | float s; 26 | }; 27 | 28 | struct RST 29 | { 30 | VECTOR3 Pos; 31 | VECTOR3 Rot; 32 | VECTOR3 Scale; 33 | QUATERNION Quaternion; 34 | }; 35 | 36 | typedef float MATRIX[4][4]; 37 | 38 | VECTOR3 V3_Make(float x, float y, float z); 39 | 40 | VECTOR3 V3_Add(VECTOR3 a, VECTOR3 b); 41 | VECTOR3 V3_Sub(VECTOR3 a, VECTOR3 b); 42 | VECTOR3 V3_Mults(VECTOR3 a, float b); 43 | VECTOR3 V3_Cross(VECTOR3 b, VECTOR3 c); 44 | float V3_Dot(VECTOR3 a, VECTOR3 b); 45 | 46 | float V3_Length(VECTOR3 a); 47 | VECTOR3 V3_Normalize(VECTOR3 a); 48 | 49 | void AngleAxis2Quaternion(float x, float y, float z, float phi, QUATERNION &q); 50 | QUATERNION Q_Slerp(QUATERNION q1,QUATERNION q2,float t); 51 | QUATERNION Q_Mult(QUATERNION a,QUATERNION b); 52 | QUATERNION Q_Normalize(QUATERNION a); 53 | 54 | void M_Identity(MATRIX &m); 55 | 56 | void M_XPose(float x, float y, float z, MATRIX &m); 57 | void M_Scale(float x, float y, float z, MATRIX &m); 58 | void M_Rotate(float ax,float ay,float az,float phi,MATRIX &m); 59 | void M_Skew(float ax, float ay, float az, MATRIX &m); 60 | void M_Trapez(float f, MATRIX &m); 61 | void M_Quaternion(QUATERNION q,MATRIX &m); 62 | 63 | void M_Mult(MATRIX m1, MATRIX m2, MATRIX &m); 64 | 65 | void M_Xformd(MATRIX m, VECTOR3 v, VECTOR3 &d); 66 | void M_Xform3(MATRIX m, VECTOR3 v, VECTOR3 &d); 67 | void M_Invert(MATRIX &mat); 68 | void M_Transpose(MATRIX &mat); 69 | 70 | void M_RevXpose(const MATRIX m, VECTOR3 &v); 71 | void M_RevScale(const MATRIX m, VECTOR3 &v); 72 | void M_RevRotate(const MATRIX m, VECTOR3 &v, float &phi); 73 | 74 | float LinearInterpolate(float Min, float Max, float Pos); 75 | float BSplineInterpolate(float p1,float p2,float p3,float p4,float t); 76 | 77 | float distRayPlane(VECTOR3 vRayOrigin,VECTOR3 vnRayVector,VECTOR3 vnPlaneNormal,float planeD); 78 | void RST2Matrix(RST *a,MATRIX &m, bool kill); 79 | 80 | float KillFloat(float a, int b); 81 | 82 | #endif -------------------------------------------------------------------------------- /aDDict2/aDDict.rc: -------------------------------------------------------------------------------- 1 | #define ADDICTICON 101 2 | ADDICTICON ICON addict.ico 3 | -------------------------------------------------------------------------------- /aDDict2/aDDict2.h: -------------------------------------------------------------------------------- 1 | #ifndef __aDDict2__ 2 | #define __aDDict2__ 3 | 4 | #pragma comment( lib, "opengl32.lib" ) 5 | #pragma comment( lib, "glu32.lib" ) 6 | 7 | #include "memtrack.h" 8 | 9 | #include 10 | #include 11 | #include 12 | #include "windowhandler.h" 13 | #include "GUIinterface.h" 14 | #include "aDDict2GUI.h" 15 | #include "Texgen2.h" 16 | #include "3dEngine.h" 17 | 18 | #define DataDir "Data" 19 | #define ProjectDir "data/projects" 20 | #define ProjectMsk "data/projects/*.dmo" 21 | #define TextureDir "data/textures" 22 | #define TextureMsk "data/textures/*.tex" 23 | #define JpegDir "data/Images" 24 | #define JpegMsk "data/Images/*.jpg" 25 | #define SceneDir "data/scenes" 26 | #define SceneMsk "data/scenes/*.scn" 27 | #define AseMsk "data/scenes/*.ase" 28 | #define ObjMsk "data/scenes/*.obj" 29 | #define PdoMsk "data/scenes/*.wdo" 30 | #define MusicDir "data/musics" 31 | #define MusicMsk "data/musics/*.wav" 32 | #define MusicMsk2 "data/musics/*.mp3" 33 | #define MusicMsk3 "data/musics/*.ogg" 34 | #define MinimalDir "data/minimal" 35 | #define MinimalMsk "data/minimal/*.min" 36 | 37 | extern ITEMLIST *TextureListScroller,*SceneListScroller,*ActualSceneItemList; 38 | extern SCENE *Scenes,*LastScene,*ActualScene,*LayouterSelectedScene; 39 | extern int lastwheel; 40 | 41 | // COMMANDLINE CHANGABLE VALUES 42 | 43 | extern bool LowRezLoad; 44 | 45 | #endif -------------------------------------------------------------------------------- /aDDict2/aDDict2.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aDDict2", "aDDict2.vcxproj", "{DCD714A2-AC9E-13F1-36C5-BB6E70C896E3}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {DCD714A2-AC9E-13F1-36C5-BB6E70C896E3}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {DCD714A2-AC9E-13F1-36C5-BB6E70C896E3}.Debug|Win32.Build.0 = Debug|Win32 13 | {DCD714A2-AC9E-13F1-36C5-BB6E70C896E3}.Release|Win32.ActiveCfg = Release|Win32 14 | {DCD714A2-AC9E-13F1-36C5-BB6E70C896E3}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | GlobalSection(DPCodeReviewSolutionGUID) = preSolution 20 | DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000} 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /aDDict2/aDDict2.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /aDDict2/aDDict2GUI.cpp: -------------------------------------------------------------------------------- 1 | #include "aDDict2GUI.h" 2 | 3 | cINTERFACE MainGUI; 4 | 5 | void glErrorCheck() 6 | { 7 | switch (glGetError()) 8 | { 9 | case GL_INVALID_ENUM: 10 | ErrorMessage="GL_INVALID_ENUM"; 11 | break; 12 | case GL_INVALID_VALUE: 13 | ErrorMessage="GL_INVALID_VALUE"; 14 | break; 15 | case GL_INVALID_OPERATION: 16 | ErrorMessage="GL_INVALID_OPERATION"; 17 | break; 18 | case GL_STACK_OVERFLOW: 19 | ErrorMessage="GL_STACK_OVERFLOW"; 20 | break; 21 | case GL_STACK_UNDERFLOW: 22 | ErrorMessage="GL_STACK_UNDERFLOW"; 23 | break; 24 | case GL_OUT_OF_MEMORY: 25 | ErrorMessage="GL_OUT_OF_MEMORY"; 26 | break; 27 | } 28 | } 29 | 30 | void __stdcall GUI_ButtonSelect_ParticleFreeze(cINTERFACE* Interface, int ButtonId) 31 | { 32 | GUI_ButtonSelect(Interface,ButtonId); 33 | for (WORLD *w=Worlds; w;w=w->Next) 34 | { 35 | for (int a=0; aObjectNum; a++) 36 | { 37 | if (w->ObjectList[a].EmitterData) 38 | w->ObjectList[a].EmitterData->LastFrameChecked=timeGetTime(); 39 | } 40 | } 41 | LastTime=timeGetTime(); 42 | } 43 | 44 | void __stdcall GUI_OnWheelPushAttrib(cINTERFACE* Interface, int ButtonId) 45 | { 46 | glPushAttrib(GL_ALL_ATTRIB_BITS); 47 | } 48 | 49 | void __stdcall GUI_OnWheelPopAttrib(cINTERFACE* Interface, int ButtonId) 50 | { 51 | glPopAttrib(); 52 | } 53 | 54 | void InitGUI() 55 | { 56 | BuildFont(); 57 | 58 | glClearColor(backgroundcol); 59 | glClear(0x4100); 60 | glColor4f(1,1,1,1); 61 | glRasterPos2f(-0.07f,0); 62 | glPrint("INITIALIZING...",base); 63 | SwapBuffers(hDC); 64 | 65 | glEnable(GL_ALPHA_TEST); 66 | glAlphaFunc(GL_GEQUAL,0); 67 | glEnable(GL_NORMALIZE); 68 | InitGui(); 69 | cINTERFACE *IntroEditor,*TexGen,*Modeller,*Keyframer,*MainFileMenu; 70 | 71 | 72 | IntroEditor=MainGUI.AddSkinnedButton(10,6,IntroEditorMenu,"INTRO EDITOR AND TIMELINER TOOL",GUI_ButtonSelect_ParticleFreeze,nop,nop,nop); 73 | TexGen=MainGUI.AddSkinnedButton(117,6,TextureGeneratorMenu,"TEXTURE GENERATOR TOOL",GUI_ButtonSelect_ParticleFreeze,nop,nop,nop); 74 | Modeller=MainGUI.AddSkinnedButton(180,6,ModellerMenu,"MODELLER TOOL",GUI_ButtonSelect_ParticleFreeze,nop,nop,nop); 75 | Modeller->ParentItem->OnWheel=GUI_OnWheelPushAttrib; 76 | Modeller->ParentItem->OnWheelAfter=GUI_OnWheelPopAttrib; 77 | Keyframer=MainGUI.AddSkinnedButton(258,6,KeyframerMenu,"LAYOUTER TOOL",GUI_ButtonSelect_ParticleFreeze,nop,nop,nop); 78 | MainFileMenu=MainGUI.AddSkinnedButton(342,6,FileMenu,"FILE MENU",GUI_ButtonSelect_ParticleFreeze,nop,nop,nop); 79 | 80 | MainGUI.AddImage(880-26,2,aDDictLogo); 81 | 82 | MainGUI.SetActiveBranch(4); 83 | MainGUI.ItemList[4].ButtonPushed=true; 84 | 85 | BuildIntroEditorGUI(IntroEditor); 86 | BuildTexGenGUI(TexGen); 87 | BuildModellerGUI(Modeller); 88 | BuildLayouterGUI(Keyframer); 89 | BuildFileMenuGui(MainFileMenu); 90 | 91 | } 92 | 93 | -------------------------------------------------------------------------------- /aDDict2/aDDict2GUI.h: -------------------------------------------------------------------------------- 1 | #ifndef __aDDict2GUI__ 2 | #define __aDDict2GUI__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include "mvx.h" 7 | #include "GUIinterface.h" 8 | #include "TexGenGUI.h" 9 | #include "ModellerGUI.h" 10 | #include "IntroEditor.h" 11 | #include "FileIO.h" 12 | #include "Layouter.h" 13 | 14 | extern cINTERFACE MainGUI; 15 | 16 | void InitGUI(); 17 | void glErrorCheck(); 18 | 19 | #endif -------------------------------------------------------------------------------- /aDDict2/aDDictMath.cpp: -------------------------------------------------------------------------------- 1 | #include "aDDictMath.h" 2 | 3 | /*float __cdecl sin(float v) 4 | { 5 | volatile float res; 6 | __asm 7 | { 8 | fld v 9 | fsin 10 | fstp res 11 | } 12 | return res; 13 | } 14 | 15 | float __cdecl cos(float v) 16 | { 17 | volatile float res; 18 | __asm 19 | { 20 | fld v 21 | fcos 22 | fstp res 23 | } 24 | return res; 25 | } 26 | 27 | float __cdecl sqrt(float v) 28 | { 29 | volatile float res; 30 | __asm 31 | { 32 | fld v 33 | fsqrt 34 | fstp res 35 | } 36 | return res; 37 | } 38 | 39 | float __cdecl fabs(float v) 40 | { 41 | volatile float res; 42 | __asm 43 | { 44 | fld v 45 | fabs 46 | fstp res 47 | } 48 | return res; 49 | }*/ 50 | 51 | -------------------------------------------------------------------------------- /aDDict2/aDDictMath.h: -------------------------------------------------------------------------------- 1 | #ifndef __aDDictMath__ 2 | #define __aDDictMath__ 3 | 4 | #define radtheta 3.141592654f/180.0f 5 | 6 | /*float __cdecl sin(float v); 7 | float __cdecl cos(float v); 8 | float __cdecl sqrt(float v); 9 | float __cdecl fabs(float v);*/ 10 | 11 | #endif -------------------------------------------------------------------------------- /aDDict2/addict.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/addict.ico -------------------------------------------------------------------------------- /aDDict2/bass.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/bass.dll -------------------------------------------------------------------------------- /aDDict2/bass.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/bass.lib -------------------------------------------------------------------------------- /aDDict2/cubes.h: -------------------------------------------------------------------------------- 1 | #ifndef __cubes__ 2 | #define __cubes__ 3 | 4 | #include "Vectors.h" 5 | 6 | struct TRIANGLE 7 | { 8 | VECTOR3 p[3]; 9 | VECTOR3 n[3]; 10 | }; 11 | 12 | struct GRIDCELL 13 | { 14 | VECTOR3 p[8]; 15 | VECTOR3 n[8]; 16 | float val[8]; 17 | }; 18 | 19 | VECTOR3 VertexInterp(float isolevel,VECTOR3 p1,VECTOR3 p2,float valp1,float valp2); 20 | int Polygonise(GRIDCELL grid,float isolevel,TRIANGLE *triangles); 21 | 22 | 23 | #endif -------------------------------------------------------------------------------- /aDDict2/findfile.cpp: -------------------------------------------------------------------------------- 1 | #include "findfile.h" 2 | 3 | tfilelist *findfile(const char *path) 4 | { 5 | BOOL fFinished = FALSE; 6 | 7 | tfilelist *list = NULL; 8 | tfilelist *newlist = NULL; 9 | tfilelist *check = NULL; 10 | tfilelist *check2 = NULL; 11 | 12 | HANDLE hSearch; 13 | WIN32_FIND_DATA FileData; 14 | 15 | hSearch = FindFirstFile(path, &FileData); 16 | if (hSearch != INVALID_HANDLE_VALUE) 17 | { 18 | while (!fFinished) 19 | { 20 | if (StrCmp(FileData.cFileName,".") && StrCmp(FileData.cFileName,"..")) 21 | { 22 | newlist = new tfilelist[1]; 23 | memset(newlist,0,sizeof(tfilelist)); 24 | newlist->filedata=FileData; 25 | 26 | check = list; 27 | check2 = list; 28 | 29 | while ( (check!=NULL) && ( StrCmp(check->filedata.cFileName,FileData.cFileName)<0 )) 30 | { 31 | check2=check; 32 | check=check->next; 33 | } 34 | 35 | if (list == NULL) 36 | { 37 | newlist->next=NULL; 38 | list=newlist; 39 | } 40 | else 41 | if (check!=check2) 42 | { 43 | newlist->next=check2->next; 44 | check2->next=newlist; 45 | } 46 | else 47 | { 48 | newlist->next=list; 49 | list=newlist; 50 | } 51 | } 52 | fFinished = !FindNextFile(hSearch, &FileData); 53 | 54 | } 55 | 56 | } 57 | 58 | return list; 59 | } 60 | 61 | int filenum(tfilelist *list) 62 | { 63 | tfilelist *buffer=list; 64 | int cntr = 0; 65 | while (list!=NULL) 66 | { 67 | cntr++; 68 | list=list->next; 69 | } 70 | return cntr; 71 | } -------------------------------------------------------------------------------- /aDDict2/findfile.h: -------------------------------------------------------------------------------- 1 | #ifndef __findfile__ 2 | #define __findfile__ 3 | 4 | #include "memtrack.h" 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | struct tfilelist { 11 | WIN32_FIND_DATA filedata; 12 | tfilelist *next; 13 | }; 14 | 15 | tfilelist *findfile(const char *path); 16 | int filenum(tfilelist *list); 17 | 18 | #endif -------------------------------------------------------------------------------- /aDDict2/memtrack.cpp: -------------------------------------------------------------------------------- 1 | #include "memtrack.h" 2 | 3 | int MemUsage; 4 | 5 | /*#undef new 6 | void * __cdecl operator new(unsigned int size,const char *file,int line) 7 | { 8 | //return _malloc_dbg(size,_NORMAL_BLOCK,file,line); 9 | MemUsage+=size; 10 | return malloc(size); 11 | } 12 | #define new new(__FILE__,__LINE__)*/ -------------------------------------------------------------------------------- /aDDict2/memtrack.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /*#include 4 | 5 | #define _MFC_OVERRIDES_NEW 6 | void * __cdecl operator new(unsigned int,const char *,int); 7 | inline void __cdecl operator delete(void *p, const char *, int) 8 | { ::operator delete(p); } 9 | #define new new(__FILE__,__LINE__)*/ 10 | 11 | extern int MemUsage; -------------------------------------------------------------------------------- /aDDict2/mvx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/mvx.h -------------------------------------------------------------------------------- /aDDict2/mvxWavPlayerLib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConspiracyHu/2012SourcePack/e878e3a2ecece26931ad23416d4f856fd5d33540/aDDict2/mvxWavPlayerLib.lib -------------------------------------------------------------------------------- /aDDict2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by aDDict.rc 4 | // 5 | #define ADDICTICON 101 6 | #define IDB_BITMAP1 105 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 106 13 | #define _APS_NEXT_COMMAND_VALUE 40001 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /aDDict2/text.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | FARBRAUSCH 4 | 5 | SCOOPEX 6 | 7 | THE SILENTS 8 | 9 | EQUINOX 10 | 11 | MATT CURRENT 12 | 13 | CALODOX 14 | 15 | TRACTION 16 | 17 | NAH COLOR 18 | 19 | CONSPIRACY 20 | 21 | KEWLERS 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | . -------------------------------------------------------------------------------- /aDDict2/tlFont.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include "tlD3D.h" 5 | 6 | class tlFont { 7 | public: 8 | tlFont(LPDIRECT3DDEVICE9 dev); 9 | ~tlFont(); 10 | 11 | LPDIRECT3DDEVICE9 dev; 12 | LPDIRECT3DTEXTURE9 tex; 13 | 14 | void PutChar(int x,int y,char c); 15 | void PrintF(int x,int y,unsigned int color,float size,char * s, ...); 16 | void SetClipArea(LPRECT r); 17 | 18 | float texcoordu1[256]; 19 | float texcoordu2[256]; 20 | float texcoordv1[256]; 21 | float texcoordv2[256]; 22 | }; -------------------------------------------------------------------------------- /aDDict2/windowhandler.h: -------------------------------------------------------------------------------- 1 | #ifndef __windowhandler__ 2 | #define __windowhandler 3 | 4 | #include "memtrack.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #define DEMOSAVE_LeftButton 0 12 | #define DEMOSAVE_RightButton 1 13 | #define DEMOSAVE_MiddleButton 2 14 | #define DEMOSAVE_Wheel 3 15 | #define DEMOSAVE_Key 4 16 | 17 | extern FILE *DebugText; 18 | 19 | extern HDC hDC; 20 | extern HGLRC hRC; 21 | extern HWND hWnd; 22 | extern HINSTANCE hInstance; 23 | 24 | extern bool Keys[256]; 25 | extern bool Active; 26 | 27 | extern bool Done,WaitLeftButton,WaitMiddleButton,WaitRightButton; 28 | 29 | extern GLuint base,basesmall; 30 | extern MSG msg; 31 | extern int Wheel; 32 | 33 | extern int XRes,YRes,mx,my,lx,ly,rx,ry,mbx,mby,wheel,fwKeys,Wheel; 34 | extern bool LeftShift,LeftCtrl,RightShift,RightCtrl,MidShift,MidCtrl; 35 | extern char *CommandLine; 36 | extern bool CommandLineEnter; 37 | extern bool CommandLineReading; 38 | extern bool CommandLineCommand; 39 | extern bool LeftButton,RightButton,MiddleButton; 40 | extern bool Transforming,Cammoving; 41 | extern bool TransformingWhenRightClicked,TransformingWhenMidClicked,CammovingWhenRightClicked; 42 | 43 | extern HCURSOR Crosshair,Arrow,Horizontal,Vertical,HV1,HV2,Hand; 44 | extern HCURSOR CurrentCursor; 45 | extern bool DebugStart; 46 | extern bool DemoPlayback; 47 | extern int DemoSaveStartTime; 48 | extern FILE *DemoSave; 49 | 50 | GLvoid KillGLWindow(GLvoid); 51 | LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 52 | BOOL Intro_CreateWindow(char* title, int width, int height, int bits, bool fullscreenflag, HICON icon); 53 | 54 | bool MouseInWindow( float x1,float y1,float x2,float y2); 55 | bool MouseInWindow( int x1,int y1,int x2,int y2); 56 | bool LeftClickInWindow( float x1,float y1,float x2,float y2); 57 | bool LeftClickInWindow( int x1,int y1,int x2,int y2); 58 | bool RightClickInWindow( float x1,float y1,float x2,float y2); 59 | bool RightClickInWindow( int x1,int y1,int x2,int y2); 60 | bool MidClickInWindow( float x1,float y1,float x2,float y2); 61 | bool MidClickInWindow( int x1,int y1,int x2,int y2); 62 | 63 | void WaitLeftButtonRelease(); 64 | void WaitMiddleButtonRelease(); 65 | void WaitRightButtonRelease(); 66 | 67 | void SwitchTo2D(); 68 | 69 | void WriteDebug(const char *fmt, ...); 70 | 71 | void InitDemoSave(); 72 | void DeinitDemoSave(); 73 | void DeinitDemoPlayback(); 74 | void InitDemoPlayback(); 75 | void PlayBackFunction(); 76 | 77 | #endif -------------------------------------------------------------------------------- /aDDict2/writer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #define WRITER_STYLE_BOLD 0x00000001 8 | #define WRITER_STYLE_ITALIC 0x00000002 9 | 10 | class CWriter { 11 | public: 12 | CWriter(); 13 | // virtual ~CWriter(void); 14 | 15 | // void Upload(); 16 | 17 | // void PutChar(float,float,int,char); 18 | void Print(float,float,float,float,float,char*); 19 | 20 | HFONT font; 21 | unsigned int * buffer; 22 | 23 | float texcoordu1[256]; 24 | float texcoordu2[256]; 25 | float texcoordv1[256]; 26 | float texcoordv2[256]; 27 | 28 | GLuint tex; 29 | }; -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2001-2012, Barna Buza, Gergely Szelei-Kis, Zoltán Szabó, 2 | Márton Ekler, István Major, László Vincze, Mátyás Terstyánszky 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | 1. Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 2. Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 3. This software, and any software based on this software remains free of charge. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | --------------------------------------------------------------------------------