Refine search
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(FloatBuffer src, FloatBuffer dst) { if (CHECKS) { check(dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 2)); }
public static void glGetProgramResourcefvNV(@NativeType("GLuint") int program, @NativeType("GLenum") int programInterface, @NativeType("GLuint") int index, @NativeType("GLenum const *") IntBuffer props, @Nullable @NativeType("GLsizei *") IntBuffer length, @NativeType("GLfloat *") FloatBuffer params) { if (CHECKS) { checkSafe(length, 1); } nglGetProgramResourcefvNV(program, programInterface, index, props.remaining(), memAddress(props), params.remaining(), memAddressSafe(length), memAddress(params)); }
/** Unsafe version of {@link #color(FloatBuffer) color}. */ public static void ncolor(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 4); } memCopy(memAddress(value), struct + VkDebugUtilsLabelEXT.COLOR, value.remaining() * 4); } /** Unsafe version of {@link #color(int, float) color}. */
public static void glGetProgramResourcefvNV(@NativeType("GLuint") int program, @NativeType("GLenum") int programInterface, @NativeType("GLuint") int index, @NativeType("GLenum const *") IntBuffer props, @Nullable @NativeType("GLsizei *") IntBuffer length, @NativeType("GLfloat *") FloatBuffer params) { if (CHECKS) { checkSafe(length, 1); } nglGetProgramResourcefvNV(program, programInterface, index, props.remaining(), memAddress(props), params.remaining(), memAddressSafe(length), memAddress(params)); }
/** Unsafe version of {@link #float32(FloatBuffer) float32}. */ public static void nfloat32(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 4); } memCopy(memAddress(value), struct + VkClearColorValue.FLOAT32, value.remaining() * 4); } /** Unsafe version of {@link #float32(int, float) float32}. */
/** Unsafe version of {@link #v(FloatBuffer) v}. */ public static void nv(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 2); } memCopy(memAddress(value), struct + HmdVector2.V, value.remaining() * 4); } /** Unsafe version of {@link #v(int, float) v}. */
/** Unsafe version of {@link #xform(FloatBuffer) xform}. */ public static void nxform(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 6); } memCopy(memAddress(value), struct + NVGPaint.XFORM, value.remaining() * 4); } /** Unsafe version of {@link #xform(int, float) xform}. */
/** Unsafe version of {@link #v(FloatBuffer) v}. */ public static void nv(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 3); } memCopy(memAddress(value), struct + HmdVector3.V, value.remaining() * 4); } /** Unsafe version of {@link #v(int, float) v}. */
/** Unsafe version of {@link #rgba(FloatBuffer) rgba}. */ public static void nrgba(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 4); } memCopy(memAddress(value), struct + NVGColor.RGBA, value.remaining() * 4); } /** Unsafe version of {@link #rgba(int, float) rgba}. */
/** * Sets the current vertex weights. * * @param weights the vertex weights */ public static void glWeightfvARB(@NativeType("GLfloat *") FloatBuffer weights) { nglWeightfvARB(weights.remaining(), memAddress(weights)); }
/** Unsafe version of {@link #v(FloatBuffer) v}. */ public static void nv(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 4); } memCopy(memAddress(value), struct + HmdVector4.V, value.remaining() * 4); } /** Unsafe version of {@link #v(int, float) v}. */
/** Unsafe version of {@link #color(FloatBuffer) color}. */ public static void ncolor(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 4); } memCopy(memAddress(value), struct + VkDebugMarkerMarkerInfoEXT.COLOR, value.remaining() * 4); } /** Unsafe version of {@link #color(int, float) color}. */
/** Unsafe version of {@link #m(FloatBuffer) m}. */ public static void nm(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 9); } memCopy(memAddress(value), struct + HmdMatrix33.M, value.remaining() * 4); } /** Unsafe version of {@link #m(int, float) m}. */
/** Unsafe version of {@link #m(FloatBuffer) m}. */ public static void nm(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 12); } memCopy(memAddress(value), struct + HmdMatrix34.M, value.remaining() * 4); } /** Unsafe version of {@link #m(int, float) m}. */
/** Unsafe version of {@link #m(FloatBuffer) m}. */ public static void nm(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 16); } memCopy(memAddress(value), struct + HmdMatrix44.M, value.remaining() * 4); } /** Unsafe version of {@link #m(int, float) m}. */
/** Unsafe version of {@link #axes(FloatBuffer) axes}. */ public static void naxes(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 6); } memCopy(memAddress(value), struct + GLFWGamepadState.AXES, value.remaining() * 4); } /** Unsafe version of {@link #axes(int, float) axes}. */
/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(FloatBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 2)); }
/** Unsafe version of {@link #extent(FloatBuffer) extent}. */ public static void nextent(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 2); } memCopy(memAddress(value), struct + NVGPaint.EXTENT, value.remaining() * 4); } /** Unsafe version of {@link #extent(int, float) extent}. */
/** Unsafe version of {@link #blendConstants(FloatBuffer) blendConstants}. */ public static void nblendConstants(long struct, FloatBuffer value) { if (CHECKS) { checkGT(value, 4); } memCopy(memAddress(value), struct + VkPipelineColorBlendStateCreateInfo.BLENDCONSTANTS, value.remaining() * 4); } /** Unsafe version of {@link #blendConstants(int, float) blendConstants}. */
/** * Sets a pixel map lookup table. * * @param map the map to set. One of:<br><table><tr><td>{@link #GL_PIXEL_MAP_I_TO_I PIXEL_MAP_I_TO_I}</td><td>{@link #GL_PIXEL_MAP_S_TO_S PIXEL_MAP_S_TO_S}</td><td>{@link #GL_PIXEL_MAP_I_TO_R PIXEL_MAP_I_TO_R}</td><td>{@link #GL_PIXEL_MAP_I_TO_G PIXEL_MAP_I_TO_G}</td><td>{@link #GL_PIXEL_MAP_I_TO_B PIXEL_MAP_I_TO_B}</td></tr><tr><td>{@link #GL_PIXEL_MAP_I_TO_A PIXEL_MAP_I_TO_A}</td><td>{@link #GL_PIXEL_MAP_R_TO_R PIXEL_MAP_R_TO_R}</td><td>{@link #GL_PIXEL_MAP_G_TO_G PIXEL_MAP_G_TO_G}</td><td>{@link #GL_PIXEL_MAP_B_TO_B PIXEL_MAP_B_TO_B}</td><td>{@link #GL_PIXEL_MAP_A_TO_A PIXEL_MAP_A_TO_A}</td></tr></table> * @param values the map values * * @see <a target="_blank" href="http://docs.gl/gl3/glPixelMap">Reference Page</a> - <em>This function is deprecated and unavailable in the Core profile</em> */ public static void glPixelMapfv(@NativeType("GLenum") int map, @NativeType("GLfloat const *") FloatBuffer values) { nglPixelMapfv(map, values.remaining(), memAddress(values)); }