ホーム › Graphics.OpenGL › glTexCoord1s
glTexCoord1s
関数現在のテクスチャ座標を短整数の1成分で設定する。
シグネチャ
// OPENGL32.dll
#include <windows.h>
void glTexCoord1s(
SHORT s
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| s | SHORT | in |
戻り値の型: void
各言語での呼び出し定義
// OPENGL32.dll
#include <windows.h>
void glTexCoord1s(
SHORT s
);[DllImport("OPENGL32.dll", ExactSpelling = true)]
static extern void glTexCoord1s(
short s // SHORT
);<DllImport("OPENGL32.dll", ExactSpelling:=True)>
Public Shared Sub glTexCoord1s(
s As Short ' SHORT
)
End Sub' s : SHORT
Declare PtrSafe Sub glTexCoord1s Lib "opengl32" ( _
ByVal s As Integer)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
glTexCoord1s = ctypes.windll.opengl32.glTexCoord1s
glTexCoord1s.restype = None
glTexCoord1s.argtypes = [
ctypes.c_short, # s : SHORT
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('OPENGL32.dll')
glTexCoord1s = Fiddle::Function.new(
lib['glTexCoord1s'],
[
Fiddle::TYPE_SHORT, # s : SHORT
],
Fiddle::TYPE_VOID)#[link(name = "opengl32")]
extern "system" {
fn glTexCoord1s(
s: i16 // SHORT
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("OPENGL32.dll")]
public static extern void glTexCoord1s(short s);
"@
$api = Add-Type -MemberDefinition $sig -Name 'OPENGL32_glTexCoord1s' -Namespace Win32 -PassThru
# $api::glTexCoord1s(s)#uselib "OPENGL32.dll"
#func global glTexCoord1s "glTexCoord1s" sptr
; glTexCoord1s s
; s : SHORT -> "sptr"#uselib "OPENGL32.dll"
#func global glTexCoord1s "glTexCoord1s" int
; glTexCoord1s s
; s : SHORT -> "int"; void glTexCoord1s(SHORT s)
#uselib "OPENGL32.dll"
#func global glTexCoord1s "glTexCoord1s" int
; glTexCoord1s s
; s : SHORT -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
opengl32 = windows.NewLazySystemDLL("OPENGL32.dll")
procglTexCoord1s = opengl32.NewProc("glTexCoord1s")
)
// s (SHORT)
r1, _, err := procglTexCoord1s.Call(
uintptr(s),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure glTexCoord1s(
s: Smallint // SHORT
); stdcall;
external 'OPENGL32.dll' name 'glTexCoord1s';result := DllCall("OPENGL32\glTexCoord1s"
, "Short", s ; SHORT
, "Int") ; return: void●glTexCoord1s(s) = DLL("OPENGL32.dll", "int glTexCoord1s(int)")
# 呼び出し: glTexCoord1s(s)
# s : SHORT -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。