1
0

split painter and context classes in nvwidgets.pas into separate source file

fixed compilation example.pp
renamed context and painter source files to be more clear


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2248 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blaszijk
2012-01-11 17:29:49 +00:00
parent 8e9a5d48b4
commit 6a43b61d2c
9 changed files with 402 additions and 329 deletions

@ -6,7 +6,7 @@ program example;
uses
Classes, SysUtils,
GLut, GL, GLu,
nvWidgets, nvGlutWidgets;
nvTypes, nvGlutContext, nvGLPainter, GLFreeTypeFont;
type
UIOption = (
@ -169,6 +169,8 @@ begin
glutCreateWindow('UI example');
ui := GlutUIContext.Create;
ui.Painter := GLUIPainter.Create;
ui.Painter.Font := TGLFreeTypeFont.Create('Ubuntu-R.ttf', 10);
if not ui.init(win_w, win_h) then
begin