hi all. me, please.
i'm doing:
code:
- (void)applicationwillfinishlaunching:(nsnotification *)anotification { [window setstylemask: nsborderlesswindowmask | nstitledwindowmask | nsclosablewindowmask]; nsopenglpixelformatattribute attribs[] = { kcglpfaaccelerated, kcglpfanorecovery, kcglpfadoublebuffer, kcglpfacolorsize, 32, kcglpfadepthsize, 24, 0 }; nsopenglpixelformat* pixelformat = [[nsopenglpixelformat alloc] initwithattributes :attribs]; nsrect rect; nssize size; size.width=800; size.height=600; rect.size=size; rect.origin=nspoint(); openglview = [[v_openglview alloc]initwithframe:rect pixelformat:pixelformat]; nsview* view=[window contentview]; [view addsubview:openglview]; nsopenglcontext* context=[openglview openglcontext]; [context setview:openglview]; [openglview prepareopengl]; }
----------
admins, move thread in section "programming", please.
Forums Macs Mac Apps and Mac App Store
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment