42 sprintf(m_name,
XSTR(
"Jump Node %d", 632), Jump_nodes.size());
51 m_pos.
xyz.x = position->
xyz.x;
52 m_pos.
xyz.y = position->
xyz.y;
53 m_pos.
xyz.z = position->
xyz.z;
60 : m_radius(other.m_radius), m_modelnum(other.m_modelnum), m_objnum(other.m_objnum), m_flags(other.m_flags)
62 other.m_radius = 0.0f;
63 other.m_modelnum = -1;
67 m_display_color = other.m_display_color;
77 m_radius = other.m_radius;
78 m_modelnum = other.m_modelnum;
79 m_objnum = other.m_objnum;
80 m_flags = other.m_flags;
82 other.m_radius = 0.0f;
83 other.m_modelnum = -1;
87 m_display_color = other.m_display_color;
152 return m_display_color;
178 CLAMP(alpha, 0, 255);
192 Assert(model_name != NULL);
195 int new_model =
model_load(model_name, 0, NULL, 0);
199 Warning(
LOCATION,
"Couldn't load model file %s for jump node %s", model_name, m_name);
208 m_modelnum = new_model;
230 Assert((check ==
this || !check));
316 else if ( view_pos != NULL) {
327 }
else if ( dist > 10000 ) {
351 Render(&scene, pos, view_pos);
393 else if ( view_pos != NULL) {
404 }
else if ( dist > 10000 ) {
434 for (jnp = Jump_nodes.begin(); jnp != Jump_nodes.end(); ++jnp) {
454 for (jnp = Jump_nodes.begin(); jnp != Jump_nodes.end(); ++jnp) {
455 if(jnp->GetModelNumber() < 0)
460 if ( dist <= radius ) {
477 for (jnp = Jump_nodes.begin(); jnp != Jump_nodes.end(); ++jnp) {
478 jnp->Render(&jnp->GetSCPObject()->pos);
void RenderDEPRECATED(vec3d *pos, vec3d *view_pos=NULL)
#define MR_SHOW_OUTLINE_HTL
void Render(vec3d *pos, vec3d *view_pos=NULL)
void _cdecl void void _cdecl void _cdecl Warning(char *filename, int line, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(3
void gr_init_alphacolor(color *clr, int r, int g, int b, int alpha, int type)
#define MR_SHOW_OUTLINE_PRESET
void set_flags(uint flags)
struct vec3d::@225::@227 xyz
void set_detail_level_lock(int detail_level_lock)
void gr_set_color_fast(color *dst)
#define GR_FILL_MODE_SOLID
SCP_list< CJumpNode > Jump_nodes
#define HUD_COLOR_ALPHA_USER_MAX
#define JN_USE_DISPLAY_COLOR
#define CLAMP(x, min, max)
void gr_set_color(int r, int g, int b)
void model_render_queue(model_render_params *interp, draw_list *scene, int model_num, matrix *orient, vec3d *pos)
CJumpNode * jumpnode_get_by_name(const char *name)
GLdouble GLdouble GLdouble r
void SetModel(char *model_name, bool show_polys=false)
#define HUD_COLOR_ALPHA_USER_MIN
GLenum GLenum GLsizei const GLuint GLboolean enabled
int obj_create(ubyte type, int parent_obj, int instance, matrix *orient, vec3d *pos, float radius, uint flags)
color HUD_color_defaults[HUD_NUM_COLOR_LEVELS]
sprintf(buf,"(%f,%f,%f)", v3->xyz.x, v3->xyz.y, v3->xyz.z)
void SetVisibility(bool enabled)
float vm_vec_dist(const vec3d *v0, const vec3d *v1)
int model_load(char *filename, int n_subsystems, model_subsystem *subsystems, int ferror=1, int duplicate=0)
void set_color(color &clr)
CJumpNode * jumpnode_get_which_in(object *objp)
void jumpnode_render_all()
object Objects[MAX_OBJECTS]
const char * XSTR(const char *str, int index)
void jumpnode_level_close()
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
void obj_delete(int objnum)
void SetName(const char *new_name)
float vm_vec_dist_quick(const vec3d *v0, const vec3d *v1)
void model_render_DEPRECATED(int model_num, matrix *orient, vec3d *pos, uint flags=MR_DEPRECATED_NORMAL, int objnum=-1, int lighting_skip=-1, int *replacement_textures=NULL, int render=MODEL_RENDER_ALL, const bool is_skybox=false)
float model_get_radius(int modelnum)
void render_all(int depth_mode=-1)
void SetAlphaColor(int r, int g, int b, int alpha)
GLclampf GLclampf GLclampf alpha
void model_unload(int modelnum, int force=0)