Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than opengl32, prefix the name with the module name and a period.
wglUseFontOutlines (opengl32)
.
C# Signature:
[DllImport("opengl32", EntryPoint = "wglUseFontOutlines", CallingConvention=CallingConvention.Winapi)]
public static extern bool wglUseFontOutlines(
IntPtr hDC,
[MarshalAs(UnmanagedType.U4)] UInt32 first,
[MarshalAs(UnmanagedType.U4)] UInt32 count,
[MarshalAs(UnmanagedType.U4)] UInt32 listBase,
[MarshalAs(UnmanagedType.R4)] Single deviation,
[MarshalAs(UnmanagedType.R4)] Single extrusion,
[MarshalAs(UnmanagedType.I4)] Int32 format,
[Out] Gdi.GLYPHMETRICSFLOAT[] lpgmf);
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public struct GLYPHMETRICSFLOAT
{
public Single gmfBlackBoxX;
public Single gmfBlackBoxY;
public POINTFLOAT gmfptGlyphOrigin;
public Single gmfCellIncX;
public Single gmfCellIncY;
}
public struct POINTFLOAT
{
public Single x;
public Single y;
}
VB Signature:
Declare Function wglUseFontOutlines Lib "opengl32.dll" (TODO) As TODO
public Gdi.GLYPHMETRICSFLOAT[] gmf = null;
public UInt32 FontBase = 0;
IntPtr _OldFontH = IntPtr.Zero;
public void Individual_OpenGLInit( System.Windows.Forms.PaintEventArgs pe )
{
#region Generate GDI WGL FONT OUTLINES
try
{
gmf = new Gdi.GLYPHMETRICSFLOAT[256];
IntPtr dc = pe.Graphics.GetHdc();
System.Drawing.Font font =
new Font(
"Verdana",
9F,
System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point,
((System.Byte)(0)));
The Tao Framework (open source and free: get it at http://www.taoframework.com/ ) wraps all the OpenGL functions (as well as other multimedia libraries) for your VB and C# programming pleasure.
The Tao Framework (get it at [ http://www.taoframework.com/ ]) wraps all the OpenGL functions (as well as other multimedia libraries)
for your VB and C# programming pleasure.
Values from winnt.h
3/16/2007 7:37:08 AM - -141.155.77.196
TODO - a short description
3/16/2007 8:09:17 AM - -213.23.19.216
TODO - a short description
10/19/2009 7:36:00 AM - anonymous
TODO - a short description
6/25/2015 4:04:02 PM - -179.125.31.254
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).