ホーム › Graphics.OpenGL › glIsTexture
glIsTexture
関数指定した識別子がテクスチャオブジェクトか判定する。
シグネチャ
// OPENGL32.dll
#include <windows.h>
BYTE glIsTexture(
DWORD texture
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| texture | DWORD | in |
戻り値の型: BYTE
各言語での呼び出し定義
// OPENGL32.dll
#include <windows.h>
BYTE glIsTexture(
DWORD texture
);[DllImport("OPENGL32.dll", ExactSpelling = true)]
static extern byte glIsTexture(
uint texture // DWORD
);<DllImport("OPENGL32.dll", ExactSpelling:=True)>
Public Shared Function glIsTexture(
texture As UInteger ' DWORD
) As Byte
End Function' texture : DWORD
Declare PtrSafe Function glIsTexture Lib "opengl32" ( _
ByVal texture As Long) As Byte
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
glIsTexture = ctypes.windll.opengl32.glIsTexture
glIsTexture.restype = ctypes.c_ubyte
glIsTexture.argtypes = [
wintypes.DWORD, # texture : DWORD
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('OPENGL32.dll')
glIsTexture = Fiddle::Function.new(
lib['glIsTexture'],
[
-Fiddle::TYPE_INT, # texture : DWORD
],
-Fiddle::TYPE_CHAR)#[link(name = "opengl32")]
extern "system" {
fn glIsTexture(
texture: u32 // DWORD
) -> u8;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("OPENGL32.dll")]
public static extern byte glIsTexture(uint texture);
"@
$api = Add-Type -MemberDefinition $sig -Name 'OPENGL32_glIsTexture' -Namespace Win32 -PassThru
# $api::glIsTexture(texture)#uselib "OPENGL32.dll"
#func global glIsTexture "glIsTexture" sptr
; glIsTexture texture ; 戻り値は stat
; texture : DWORD -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "OPENGL32.dll"
#cfunc global glIsTexture "glIsTexture" int
; res = glIsTexture(texture)
; texture : DWORD -> "int"; BYTE glIsTexture(DWORD texture)
#uselib "OPENGL32.dll"
#cfunc global glIsTexture "glIsTexture" int
; res = glIsTexture(texture)
; texture : DWORD -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
opengl32 = windows.NewLazySystemDLL("OPENGL32.dll")
procglIsTexture = opengl32.NewProc("glIsTexture")
)
// texture (DWORD)
r1, _, err := procglIsTexture.Call(
uintptr(texture),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BYTEfunction glIsTexture(
texture: DWORD // DWORD
): Byte; stdcall;
external 'OPENGL32.dll' name 'glIsTexture';result := DllCall("OPENGL32\glIsTexture"
, "UInt", texture ; DWORD
, "UChar") ; return: BYTE●glIsTexture(texture) = DLL("OPENGL32.dll", "byte glIsTexture(dword)")
# 呼び出し: glIsTexture(texture)
# texture : DWORD -> "dword"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。