Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.
/ 3d2d-vgui Public archive

👀 Render and control 2D VGUI in 3D world space for Garry's Mod

License

Notifications You must be signed in to change notification settings

handsomematt/3d2d-vgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

A simple library to draw VGUI panels in 3D space, created by Alexander Overvoorde and Matt Stevens.

demo

Usage

You can find examples in the samples folder but the basic usage is as follows:

local sampleFrame = vgui.Create( "DFrame" )
sampleFrame:SetPos( 0, 0 )
sampleFrame:SetSize( 200, 250 )
sampleFrame:ParentToHUD()

hook.Add( "PostDrawOpaqueRenderables", "DrawDemoFrame", function()
	vgui.Start3D2D( Vector(), Angle(), 1 )
		sampleFrame:Paint3D2D()
	vgui.End3D2D()
end )

Bugs and feature requests

Have a bug or a feature request? Please open a new issue.

License

Copyright 2015-2017 Alexander Overvoorde and Matt Stevens under the MIT license.

About

👀 Render and control 2D VGUI in 3D world space for Garry's Mod

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages