mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-07 12:35:44 +00:00
* There was a bug that existed in open GL ES 2.0 implementations where glTexImage2D could not convert GL_RGB formed textures into GL_RGBA while generating the noise textures. The GL error was GL_INVALID_OPERATION(0x502) This probably made the noise textures blank. So a new class was added that has the alpha channel for the values. * Added a fudge for render farming milkdrop where we control the time and the ticks. * User defined time: Got rid of testing code * Attempt to fix WIN32 compile - it doesnt use or need the ability to control the time * Got rid of debug - got rid of minor warning * projectM.hpp - type in ifdef projectM_SDL_main.cpp - there is code added to make the initial random number dependent on the time of day, making the sequence of visualizers more unexpected. But the posix command time does not exist in Win32 land, so we disable it.
65 lines
1.7 KiB
C
65 lines
1.7 KiB
C
/**
|
|
* projectM -- Milkdrop-esque visualisation SDK
|
|
* Copyright (C)2003-2007 projectM Team
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
* See 'LICENSE.txt' included within this release
|
|
*
|
|
*/
|
|
/**
|
|
* $Id: timer.h,v 1.1.1.1 2005/12/23 18:05:00 psperl Exp $
|
|
*
|
|
* Platform-independent timer
|
|
*
|
|
* $Log: timer.h,v $
|
|
* Revision 1.1.1.1 2005/12/23 18:05:00 psperl
|
|
* Imported
|
|
*
|
|
* Revision 1.2 2004/10/05 09:19:40 cvs
|
|
* Fixed header include defines
|
|
*
|
|
* Revision 1.1.1.1 2004/10/04 12:56:00 cvs
|
|
* Imported
|
|
*
|
|
*/
|
|
|
|
#ifndef _TIMER_H
|
|
#define _TIMER_H
|
|
|
|
|
|
|
|
#ifndef WIN32
|
|
#include <sys/time.h>
|
|
unsigned int getTicks( struct timeval *start );
|
|
|
|
extern "C" {
|
|
typedef int (*fspec_gettimeofday)(struct timeval *tv, struct timezone *tz);
|
|
int projectm_gettimeofday(struct timeval *tv, struct timezone *tz);
|
|
extern fspec_gettimeofday pprojectm_gettimeofday;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct timeval GetCurrentTime();
|
|
#else
|
|
#include <windows.h>
|
|
unsigned int getTicks( long start );
|
|
|
|
#endif /** !WIN32 */
|
|
|
|
#endif /** _TIMER_H */
|