NorthWanderer
Странник по коду
Дата регистрации : Jun 2007
Проживает : Развалины City 17
Сообщений : 30
Возраст: 35
Рейтинг
[кратко]
Пользователи:
-9.0 (1 )
Нарушения:
-0.9 (? )
Сообщения:
0.0 (Метки )
Регистрация:
9.5
я покзал где ошика возникает вот полный фаил
C++ Source Code:
1 //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
6 //=============================================================================
8 #if !defined ( R_STUDIOINT_H )
14 #define STUDIO_INTERFACE_VERSION 1
16 typedef struct engine_studio_api_s
18 // Allocate number*size bytes and zero it
19 void *( *Mem_Calloc ) ( int number, size_t size );
20 // Check to see if pointer is in the cache
21 void *( *Cache_Check ) ( struct cache_user_s *c );
22 // Load file into cache ( can be swapped out on demand )
23 void ( *LoadCacheFile ) ( char *path, struct cache_user_s *cu );
24 // Retrieve model pointer for the named model
25 struct model_s *( *Mod_ForName ) ( const char *name, int crash_if_missing );
26 // Retrieve pointer to studio model data block from a model
27 void *( *Mod_Extradata ) ( struct model_s *mod );
28 // Retrieve indexed model from client side model precache list
29 struct model_s *( *GetModelByIndex ) ( int index );
30 // Get entity that is set for rendering
31 struct cl_entity_s * ( *GetCurrentEntity ) ( void );
32 // Get referenced player_info_t
33 struct player_info_s *( *PlayerInfo ) ( int index );
34 // Get most recently received player state data from network system
35 struct entity_state_s *( *GetPlayerState ) ( int index );
37 struct cl_entity_s * ( *GetViewEntity ) ( void );
38 // Get current frame count, and last two timestampes on client
39 void ( *GetTimes ) ( int *framecount, double *current, double *old );
40 // Get a pointer to a cvar by name
41 struct cvar_s *( *GetCvar ) ( const char *name );
42 // Get current render origin and view vectors ( up, right and vpn )
43 void ( *GetViewInfo ) ( float *origin, float *upv, float *rightv, float *vpnv );
44 // Get sprite model used for applying chrome effect
45 struct model_s *( *GetChromeSprite ) ( void );
46 // Get model counters so we can incement instrumentation
47 void ( *GetModelCounters ) ( int **s, int **a );
48 // Get software scaling coefficients
49 void ( *GetAliasScale ) ( float *x, float *y );
51 // Get bone, light, alias, and rotation matrices
52 float ****( *StudioGetBoneTransform ) ( void );
53 float ****( *StudioGetLightTransform )( void );
54 float ***( *StudioGetAliasTransform ) ( void );
55 float ***( *StudioGetRotationMatrix ) ( void );
57 // Set up body part, and get submodel pointers
58 void ( *StudioSetupModel ) ( int bodypart, void **ppbodypart, void **ppsubmodel );
59 // Check if entity's bbox is in the view frustum
60 int ( *StudioCheckBBox ) ( void );
61 // Apply lighting effects to model
62 void ( *StudioDynamicLight ) ( struct cl_entity_s *ent, struct alight_s *plight );
63 void ( *StudioEntityLight ) ( struct alight_s *plight );
64 void ( *StudioSetupLighting ) ( struct alight_s *plighting );
67 void ( *StudioDrawPoints ) ( void );
69 // Draw hulls around bones
70 void ( *StudioDrawHulls ) ( void );
71 // Draw bbox around studio models
72 void ( *StudioDrawAbsBBox ) ( void );
74 void ( *StudioDrawBones ) ( void );
75 // Loads in appropriate texture for model
76 void ( *StudioSetupSkin ) ( void *ptexturehdr, int index );
77 // Sets up for remapped colors
78 void ( *StudioSetRemapColors ) ( int top, int bottom );
79 // Set's player model and returns model pointer
80 struct model_s *( *SetupPlayerModel ) ( int index );
81 // Fires any events embedded in animation
82 void ( *StudioClientEvents ) ( void );
83 // Retrieve/set forced render effects flags
84 int ( *GetForceFaceFlags ) ( void );
85 void ( *SetForceFaceFlags ) ( int flags );
86 // Tell engine the value of the studio model header
87 void ( *StudioSetHeader ) ( void *header );
88 // Tell engine which model_t * is being renderered
89 void ( *SetRenderModel ) ( struct model_s *model );
91 // Final state setup and restore for rendering
92 void ( *SetupRenderer ) ( int rendermode );
93 void ( *RestoreRenderer ) ( void );
95 // Set render origin for applying chrome effect
96 void ( *SetChromeOrigin ) ( void );
98 // True if using D3D/OpenGL
99 int ( *IsHardware ) ( void );
101 // Only called by hardware interface
102 void ( *GL_StudioDrawShadow ) ( void );
103 void ( *GL_SetRenderMode ) ( int mode );
104 } engine_studio_api_t;
106 typedef struct server_studio_api_s
108 // Allocate number*size bytes and zero it
109 void *( *Mem_Calloc ) ( int number, size_t size );
110 // Check to see if pointer is in the cache
111 void *( *Cache_Check ) ( struct cache_user_s *c );
112 // Load file into cache ( can be swapped out on demand )
113 void ( *LoadCacheFile ) ( char *path, struct cache_user_s *cu );
114 // Retrieve pointer to studio model data block from a model
115 void *( *Mod_Extradata ) ( struct model_s *mod );
116 } server_studio_api_t;
120 typedef struct r_studio_interface_s
123 int ( *StudioDrawModel ) ( int flags );
124 int ( *StudioDrawPlayer ) ( int flags, struct entity_state_s *pplayer );
125 } r_studio_interface_t;
127 extern r_studio_interface_t *pStudioAPI;
130 #define SV_BLENDING_INTERFACE_VERSION 1
132 typedef struct sv_blending_interface_s
136 void ( *SV_StudioSetupBones )( struct model_s *pModel,
141 const byte *pcontroller,
142 const byte *pblending,
144 const edict_t *pEdict );
145 } sv_blending_interface_t;
147 #endif // R_STUDIOINT_H
Сообщить модератору | | IP: Записан
Сообщение: 21465