You've already forked lazarus-ccr
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:
components/nvidia-widgets
@ -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
|
||||
|
Reference in New Issue
Block a user