int
setup_screen()
{
if (screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT) != 0) {
return EXIT_FAILURE;
}
if (screen_create_window(&screen_win, screen_ctx) != 0) {
screen_destroy_context(screen_ctx);
return EXIT_FAILURE;
}
if (screen_create_window_group(screen_win, get_window_group_id()) != 0){
return EXIT_FAILURE;
}
int usage = SCREEN_USAGE_NATIVE;
if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage) != 0) return EXIT_FAILURE;
if (screen_create_window_buffers(screen_win, 1) != 0) return EXIT_FAILURE;
screen_buffer_t buff;
if (screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void*)&buff) != 0) return EXIT_FAILURE;
int buffer_size[2];
if != 0) return EXIT_FAILURE;
int attribs[1] = ;
if != 0) return EXIT_FAILURE;
int dirty_rects[4] = ;
if dirty_rects, 0) != 0) return EXIT_FAILURE;
return EXIT_SUCCESS;
}
i initiate this function for screen payment…
how i get screen get_window_group_id…
i think it’s already have after declare this line code in int main
CCEGLView eglView = CCEGLView::sharedOpenGLView();
eglView->setFrameSize(width, height);
or do i need initiate int screen_screen() for payment blackberry?
Tommy