Win32 API 日本語リファレンス
ホームGraphics.OpenGL › glTexCoord1i

glTexCoord1i

関数
現在のテクスチャ座標を整数の1成分で設定する。
DLLOPENGL32.dll呼出規約winapi

シグネチャ

// OPENGL32.dll
#include <windows.h>

void glTexCoord1i(
    INT s
);

パラメーター

名前方向
sINTin

戻り値の型: void

各言語での呼び出し定義

// OPENGL32.dll
#include <windows.h>

void glTexCoord1i(
    INT s
);
[DllImport("OPENGL32.dll", ExactSpelling = true)]
static extern void glTexCoord1i(
    int s   // INT
);
<DllImport("OPENGL32.dll", ExactSpelling:=True)>
Public Shared Sub glTexCoord1i(
    s As Integer   ' INT
)
End Sub
' s : INT
Declare PtrSafe Sub glTexCoord1i Lib "opengl32" ( _
    ByVal s As Long)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

glTexCoord1i = ctypes.windll.opengl32.glTexCoord1i
glTexCoord1i.restype = None
glTexCoord1i.argtypes = [
    ctypes.c_int,  # s : INT
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('OPENGL32.dll')
glTexCoord1i = Fiddle::Function.new(
  lib['glTexCoord1i'],
  [
    Fiddle::TYPE_INT,  # s : INT
  ],
  Fiddle::TYPE_VOID)
#[link(name = "opengl32")]
extern "system" {
    fn glTexCoord1i(
        s: i32  // INT
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("OPENGL32.dll")]
public static extern void glTexCoord1i(int s);
"@
$api = Add-Type -MemberDefinition $sig -Name 'OPENGL32_glTexCoord1i' -Namespace Win32 -PassThru
# $api::glTexCoord1i(s)
#uselib "OPENGL32.dll"
#func global glTexCoord1i "glTexCoord1i" sptr
; glTexCoord1i s
; s : INT -> "sptr"
#uselib "OPENGL32.dll"
#func global glTexCoord1i "glTexCoord1i" int
; glTexCoord1i s
; s : INT -> "int"
; void glTexCoord1i(INT s)
#uselib "OPENGL32.dll"
#func global glTexCoord1i "glTexCoord1i" int
; glTexCoord1i s
; s : INT -> "int"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	opengl32 = windows.NewLazySystemDLL("OPENGL32.dll")
	procglTexCoord1i = opengl32.NewProc("glTexCoord1i")
)

// s (INT)
r1, _, err := procglTexCoord1i.Call(
	uintptr(s),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure glTexCoord1i(
  s: Integer   // INT
); stdcall;
  external 'OPENGL32.dll' name 'glTexCoord1i';
result := DllCall("OPENGL32\glTexCoord1i"
    , "Int", s   ; INT
    , "Int")   ; return: void
●glTexCoord1i(s) = DLL("OPENGL32.dll", "int glTexCoord1i(int)")
# 呼び出し: glTexCoord1i(s)
# s : INT -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。