Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ilut_main.c
Package: devil-1.7.99.tar.gz [view]
Upload User: wmy0603
Upload Date: 2022-05-02
Package Size: 1808k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- //-----------------------------------------------------------------------------
- //
- // ImageLib Utility Toolkit Sources
- // Copyright (C) 2000-2002 by Denton Woods
- // Last modified: 05/28/2001 <--Y2K Compliant! =]
- //
- // Filename: src-ILUT/src/ilut_main.c
- //
- // Description: Startup functions
- //
- //-----------------------------------------------------------------------------
- #include "ilut_internal.h"
- #ifdef _WIN32
- #ifndef IL_STATIC_LIB
- //#define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #ifdef _WIN32
- #if (defined(IL_USE_PRAGMA_LIBS))
- #if defined(_MSC_VER) || defined(__BORLANDC__)
- #pragma comment(lib, "ILU.lib")
- #endif
- #endif
- #endif
- BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
- {
- hModule; lpReserved;
- // only initialize when attached to a new process. setup can cause errors in OpenIL
- // when called on a per thread basis
- if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
- //ilutInit();
- }
- return TRUE;
- }
- #endif
- #else // Should check if gcc?
- // Should be able to condense this...
- static void GccMain() __attribute__((constructor));
- static void GccMain()
- {
- //ilutInit();
- }
- #endif
- void ILAPIENTRY ilutInit()
- {
- ilutDefaultStates(); // Set states to their defaults
- // Can cause crashes if DevIL is not initialized yet
- #ifdef ILUT_USE_OPENGL
- ilutGLInit(); // default renderer is OpenGL
- #endif
- #ifdef ILUT_USE_DIRECTX8
- ilutD3D8Init();
- #endif
- #ifdef ILUT_USE_DIRECTX9
- ilutD3D9Init();
- #endif
- return;
- }