mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.6 KiB
65 lines
1.6 KiB
|
8 years ago
|
/* [glcompatibility] */
|
||
|
|
#ifndef MAGNUM_TARGET_GLES
|
||
|
|
/**
|
||
|
|
@brief Set polygon mode
|
||
|
|
|
||
|
|
@requires_gl Polygon mode is not available in OpenGL ES.
|
||
|
|
*/
|
||
|
|
void setPolygonMode(PolygonMode mode);
|
||
|
|
#endif
|
||
|
|
/* [glcompatibility] */
|
||
|
|
|
||
|
|
/* [collisionoperator] */
|
||
|
|
/** @collisionoccurenceoperator{Point,Sphere} */
|
||
|
|
inline bool operator%(const Point& a, const Sphere& b) { return b % a; }
|
||
|
|
|
||
|
|
/** @collisionoperator{Point,Sphere} */
|
||
|
|
inline Collision operator/(const Point& a, const Sphere& b) { return (b/a).reverted(); }
|
||
|
|
/* [collisionoperator] */
|
||
|
|
|
||
|
|
/* [extension] */
|
||
|
|
/** @extension{ARB,timer_query} */
|
||
|
|
/* [extension] */
|
||
|
|
|
||
|
|
/* [extension2] */
|
||
|
|
/** @extension2{NV,read_buffer_front,GL_NV_read_buffer} */
|
||
|
|
/* [extension2] */
|
||
|
|
|
||
|
|
/* [al_extension] */
|
||
|
|
/** @al_extension{EXT,float32}, @alc_extension{SOFT,HRTF} */
|
||
|
|
/* [al_extension] */
|
||
|
|
|
||
|
|
/* [fn_gl] */
|
||
|
|
/**
|
||
|
|
...
|
||
|
|
|
||
|
|
@see @fn_gl{Enable}/@fn_gl{Disable} with @def_gl{TEXTURE_CUBE_MAP_SEAMLESS}
|
||
|
|
*/
|
||
|
|
static void setSeamless(bool enabled) {
|
||
|
|
enabled ? glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS) : glDisable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
|
||
|
|
}
|
||
|
|
/* [fn_gl] */
|
||
|
|
|
||
|
|
/* [fn_gl_extension] */
|
||
|
|
/** @fn_gl_extension{NamedCopyBufferSubData,EXT,direct_state_access} */
|
||
|
|
/* [fn_gl_extension] */
|
||
|
|
|
||
|
|
/* [fn_al] */
|
||
|
|
/**
|
||
|
|
...
|
||
|
|
|
||
|
|
@see @fn_al{Listenerfv} with @def_al{VELOCITY}
|
||
|
|
*/
|
||
|
|
static void setListenerVelocity(const Vector3& velocity) {
|
||
|
|
alListenerfv(AL_VELOCITY, velocity.data());
|
||
|
|
}
|
||
|
|
/* [fn_al] */
|
||
|
|
|
||
|
|
/* [requires_gl] */
|
||
|
|
/** @requires_gl33 Extension @extension{ARB,timer_query} */
|
||
|
|
/* [requires_gl] */
|
||
|
|
|
||
|
|
/* [requires_al_extension] */
|
||
|
|
/** @requires_al_extension Extension @al_extension{EXT,MCFORMATS} */
|
||
|
|
/* [requires_al_extension] */
|