⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ivu_os_dep.cxx

📁 hl2 source code. Do not use it illegal.
💻 CXX
字号:
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.

#include <ivp_physics.hxx>

#if !defined(SUN) && !defined(SUN4)
#	include <string.h> 
#endif
#include <ivu_types.hxx> 

// WIN32 ---------------------------------------------------------------------

static int IVP_RAND_SEED = 1;

// returns 0 .. 1.0
IVP_FLOAT ivp_rand(){
    IVP_RAND_SEED *= 75;
    IVP_FLOAT res=(IVP_RAND_SEED & 0xffff) / (float) 0x10000;
    return res;
}

void ivp_srand(int seed){
    if (seed == 0) seed = 1;
    IVP_RAND_SEED = seed;
}

int ivp_srand_read(void)
{
	return IVP_RAND_SEED;
}

extern void *p_malloc(unsigned int size);




#if 0 
FILE *p_glob_fp;
void p_init_glob_fp()
{
#ifdef WIN32
	p_glob_fp=fopen(ERRORFILEPATH,"a");
#else
	p_glob_fp=stdout;
#endif
}
#endif




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -