CN101556535B - Method for making general graphical interface in application program - Google Patents

Method for making general graphical interface in application program Download PDF

Info

Publication number
CN101556535B
CN101556535B CN 200810043227 CN200810043227A CN101556535B CN 101556535 B CN101556535 B CN 101556535B CN 200810043227 CN200810043227 CN 200810043227 CN 200810043227 A CN200810043227 A CN 200810043227A CN 101556535 B CN101556535 B CN 101556535B
Authority
CN
China
Prior art keywords
application program
control module
program
graphics
original application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200810043227
Other languages
Chinese (zh)
Other versions
CN101556535A (en
Inventor
谢斌
廖峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shengqu Information Technology (Shanghai) Co., Ltd.
Original Assignee
Shanda Computer Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanda Computer Shanghai Co Ltd filed Critical Shanda Computer Shanghai Co Ltd
Priority to CN 200810043227 priority Critical patent/CN101556535B/en
Publication of CN101556535A publication Critical patent/CN101556535A/en
Application granted granted Critical
Publication of CN101556535B publication Critical patent/CN101556535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for making a general graphic interface in application program, comprising the following steps: firstly, an original application program is loaded into an embedded program by a loading module of an embedded program, wherein the embedded program comprises a loading module, a driving module and a control module; secondly, the loading module applies for picture drawingto a graphics engine or graphics hardware API of the original application program, and also applies for the windows message processing priority; thirdly, based on the picture applied in the second step, the driving module provides the graphics software API to the control module, transmits the windows message to the control module and returns the feedback of the control module on the windows message to the original application program; and fourthly, the control module schedules an external graphic interface or compiles a graphic interface per se, and the graphic interface is displayed on the picture which is applied in the second step. The invention can be applied to any graphics engine or graphics hardware API.

Description

In application program, make the method for general graphical interface
Technical field
The present invention relates to a kind of computer graphical interface manufacture method.
Background technology
See also Fig. 1 (a), a common application program with graphical interfaces is based on a kind of graphics engine exploitation, this graphics engine is based on a kind of graphics hardware API exploitation again, and graphics hardware API is directly controlled the hardware output device as display, printer etc. again.
See also Fig. 1 (b), some application program with graphical interfaces is comparatively simple, also may directly develop based on a kind of graphics hardware API, and omit graphics engine.
Widely used graphics hardware API comprises GDI/GDI+, DirectX and OpenGL three major types at present.Graphics application program based on any graphics hardware API is wherein developed can only run under this a kind of graphics hardware API.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method of making general graphical interface in application program, and the general graphical interface of made can run under any figure API.
For solving the problems of the technologies described above, the present invention makes general graphical interface in application program method comprises the steps:
In the 1st step, original application program is written into described embedding program by embedding insmoding of program, and described embedding program comprises described insmoding, and also comprises driver module and control module;
The 2nd step, described insmoding to graphics engine or the graphics hardware API application rendered images of original application program; Described insmoding obtains the priority processing power of windows message to the original application program application;
In the 3rd step, the picture that described driver module was applied for based on the 2nd step provides graphics software API to described control module; Described driver module is transmitted windows message to described control module, and described control module is back to original application program to the feedback of windows message;
In the 4th step, described control module is called the graphical interfaces of extraneous application program, and perhaps described control module is write application program voluntarily and gathered its graphical interfaces, and this graphical interfaces is shown in the picture that the 2nd step institute applies for drafting.
The invention provides a kind of embedding program, comprise insmod, driver module and control module.Insmoding wherein is loaded into original application program with described embedding program, and driver module provides a kind of graphics software API for control module.No matter control module is called the external graphics interface is still write graphical interfaces voluntarily, all only depends on the graphics software API that driver module provides, and does not rely on graphics engine or the graphics hardware API of original application program.Therefore, the invention provides a kind of method of making general graphical interface in application program, described graphical interfaces can be applied to the application program based on any graphics engine or graphics hardware API.
Description of drawings
The present invention is further detailed explanation below in conjunction with drawings and Examples:
Fig. 1 is the development structure synoptic diagram of existing graphics application program;
Fig. 2 is the present invention makes the method for general graphical interface in application program process flow diagram;
Fig. 3 adopts the method for the invention to make the development structure synoptic diagram of graphical interfaces.
Embodiment
See also Fig. 2, the present invention makes general graphical interface in application program method comprises the steps:
The 1st step insmoded and be written into the embedding program in original application program, and described embedding program comprises described insmoding, and also comprises driver module and control module;
Be written into the embedding program in original application program, can adopt the hook technology, this is a kind of comparatively proven technique, need not carry out any modification to original application program; Also can be written into instruction in the ad-hoc location adding of original application program, this need carry out trickle change to original application program;
The 2nd step, described insmoding to graphics engine or the graphics hardware API application rendered images of original application program; Described insmoding obtains the priority processing power of windows message to the original application program application;
The application rendered images is the basic functions that any graphics engine or graphics hardware API all have, and the right of priority that application obtains windows message is that original application program can provide;
In the 3rd step, the picture that described driver module was applied for based on the 2nd step provides graphics software API to described control module; Described driver module is transmitted windows message to described control module, and described control module is back to original application program to the feedback of windows message;
The driver module of described embedding program is equivalent to provide a graphics software API for control module, make control module basis this graphics software API exploitation to have the application program of graphical interfaces, and need not consider graphics engine or the graphics hardware API of original application program; Simultaneously driver module just bear the responsibility between original application program and the control module windows message and at the mutual transmission work of the feedback of windows message;
In the 4th step, described control module is called the graphical interfaces of the application program outside original application program and the embedding program; Perhaps described control module provides a programmed environment, can write the application program with graphical interfaces voluntarily in control module, and gathers the graphical interfaces of the application program of writing.The graphical interfaces that described control module will be called in or gather again is shown in the 2nd and goes on foot the picture of applying for.
The development structure synoptic diagram that adopts said method to make graphical interfaces sees also Fig. 3, because the driver module of the program of embedding provides a kind of graphics software API for control module, no matter the graphical interfaces of control module calling external program still voluntarily coding gather graphical interfaces, all only depend on the graphics software API that driver module provides, and do not rely on graphics engine or the graphics hardware API of original application program.
Now give more concrete elaboration with two specific embodiments to the method for the invention below:
One adopts the method for the invention to insert IE in the 3D recreation.
Because the 3D recreation is based on DirectX or OpenGL exploitation, and IE is based on the GDI exploitation, so existing technical scheme can't embed IE in the 3D recreation.
Adopt the method for the invention, can be implemented in the 3D recreation and insert IE, specifically comprise the steps:
The 1st step insmoded and adopts the hook technology to be written into the embedding program in the 3D recreation, need not carry out any modification to this 3D recreation; Described embedding program comprises described insmoding, and also comprises driver module and control module;
The 2nd step, described insmoding to graphics engine or the graphics hardware API application rendered images of 3D recreation; Described insmoding also obtains the priority processing power of windows message to this 3D recreation application;
In the 3rd step, the picture that described driver module was applied for based on the 2nd step provides graphics software API to described control module; Described driver module is transmitted windows message to described control module, and described control module is back to this 3D recreation to the feedback of windows message;
In the 4th step, described control module is called the graphical interfaces of IE, and the graphics software API that provides by described driver module is shown in the described picture that insmods and apply for.
Its two, adopt the method for the invention in video, to insert an interactive program.
Generally, can't embed application program in the video, have only part DVD video to support some simple interactive programs.
Adopt the method for the invention, can be implemented in and insert any interactive program in the video, specifically comprise the steps:
The 1st step insmoded and adopts the hook technology to be written into the embedding program in video, need not carry out any modification to this video; Described embedding program comprises described insmoding, and also comprises driver module and control module;
The 2nd step, described insmoding to graphics engine or the graphics hardware API application rendered images of video; Described insmoding also obtains the priority processing power of windows message to this video application;
In the 3rd step, the picture that described driver module was applied for based on the 2nd step provides graphics software API to described control module; Described driver module is transmitted windows message to described control module, and described control module is back to this video to the feedback of windows message;
In the 4th step, described control module provides a programmed environment, writes an interactive program by described control module, and the graphics software API that the picture surface of this interactive program provides by described driver module is shown in the described picture that insmods and apply for.
In sum, it no matter is the recreation texture mode based on static resource, still based on the video mode of dynamic resource, the present invention all can make graphical interfaces in application program, and the graphical interfaces of made can also use in various different applications.This has simplified greatly and has been the complicated process at different application customized graphics interface.

Claims (5)

1. method of making general graphical interface in application program, it is characterized in that: described method comprises the steps:
In the 1st step, original application program is written into described embedding program by embedding insmoding of program, and described embedding program comprises described insmoding, and also comprises driver module and control module;
The 2nd step, described insmoding to graphics engine or the graphics hardware API application rendered images of original application program; Described insmoding obtains the priority processing power of windows message to the original application program application;
In the 3rd step, the picture that described driver module was applied for based on the 2nd step provides graphics software API to described control module; Described driver module is transmitted windows message to described control module, and described control module is back to original application program to the feedback of windows message;
In the 4th step, described control module is called the graphical interfaces of extraneous application program, and perhaps described control module is write application program voluntarily and gathered its graphical interfaces, and this graphical interfaces is shown in the picture that the 2nd step institute applies for drafting.
2. method of making general graphical interface in application program according to claim 1, it is characterized in that: in the 1st step of described method, insmoding is written into the embedding program by the hook technology in original application program.
3. method of making general graphical interface in application program according to claim 1 is characterized in that: in the 1st step of described method, by increase the embedding program that is written into of instructing that is written in original application program.
4. method of in application program, making general graphical interface according to claim 1, it is characterized in that: in the 4th step of described method, described control module is called the graphical interfaces of the application program outside original application program and the described embedding program, and the graphics software API that this graphical interfaces provides by described driver module is shown in the described picture that insmods and apply for.
5. method of in application program, making general graphical interface according to claim 1, it is characterized in that: in the 4th step of described method, described control module is write application program voluntarily and is gathered the graphical interfaces of the application program of writing, and the graphics software API that this graphical interfaces provides by described driver module is shown in the described picture that insmods and apply for.
CN 200810043227 2008-04-08 2008-04-08 Method for making general graphical interface in application program Active CN101556535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810043227 CN101556535B (en) 2008-04-08 2008-04-08 Method for making general graphical interface in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810043227 CN101556535B (en) 2008-04-08 2008-04-08 Method for making general graphical interface in application program

Publications (2)

Publication Number Publication Date
CN101556535A CN101556535A (en) 2009-10-14
CN101556535B true CN101556535B (en) 2013-10-02

Family

ID=41174660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810043227 Active CN101556535B (en) 2008-04-08 2008-04-08 Method for making general graphical interface in application program

Country Status (1)

Country Link
CN (1) CN101556535B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7095416B1 (en) * 2003-09-22 2006-08-22 Microsoft Corporation Facilitating performance analysis for processing
CN1945526A (en) * 2005-10-09 2007-04-11 光宝科技股份有限公司 Method and system for displaying graphic user interface of application program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7095416B1 (en) * 2003-09-22 2006-08-22 Microsoft Corporation Facilitating performance analysis for processing
CN1945526A (en) * 2005-10-09 2007-04-11 光宝科技股份有限公司 Method and system for displaying graphic user interface of application program

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
嵌入式***图形用户界面(GUI)的设计与研究;蔡勇君等;《微计算机信息》;20070831(第23期);第64-66页 *
曲文卿等.GDI和DirectX混合使用.《Windows游戏编程大师技巧》.中国电力出版社,2001,第344-346页. *
蔡勇君等.嵌入式***图形用户界面(GUI)的设计与研究.《微计算机信息》.2007,(第23期),第64-66页.

Also Published As

Publication number Publication date
CN101556535A (en) 2009-10-14

Similar Documents

Publication Publication Date Title
US20170148131A1 (en) Sprite Graphics Rendering System
CA2504082A1 (en) Method and apparatus for generating user interfaces based upon automation with full flexibility
AU2016269452B2 (en) User interface displaying and processing method and user interface displaying and processing device
JP2024516606A (en) Graphical interface display method, electronic device, medium, and program product
CA2946074A1 (en) Systems and methods for using an opengl api with a vulkan graphics driver
CN112269603A (en) Graphic display method and device for compatibly running Android application on Linux
US20130002688A1 (en) Method for controlling multiple displays and system thereof
WO2021013019A1 (en) Picture processing method and apparatus
US20190066370A1 (en) Rendering an image from computer graphics using two rendering computing devices
TW200606693A (en) Architecture for rendering graphics on output devices
US20090019448A1 (en) Cross Process Memory Management
KR20140053370A (en) Memory copy engine for graphics processing
CN1512454A (en) Z-buffer technology for figure heightening
NO328438B1 (en) Systems and methods for generating intermediate targets in a graphics system
CN110209967B (en) Page loading method and device, terminal equipment and computer readable medium
CN107818588B (en) Device and method for calling Qt drawing based on JNI multithreading in Android system
EP3171336A1 (en) Graphic processing apparatus and method of performing graphics pipeline
CN102567025B (en) QT-based two-dimensional/three-dimensional (2D/3D) graph drawing method and device
KR20180053725A (en) Bandwidth - Storage of compressed graphics data
US20050179691A1 (en) Window system 2D graphics redirection using direct texture rendering
Ham et al. {LPD}: Low Power Display Mechanism for Mobile and Wearable Devices
CN101556535B (en) Method for making general graphical interface in application program
CN103929536A (en) Method for improving picture processing echo speed and mobile terminal thereof
EP3251081B1 (en) Graphics processing unit with bayer mapping
US10657705B2 (en) System and method for rendering shadows for a virtual environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENGQU INFORMATION TECH (SHANGHAI) CO., LTD.

Free format text: FORMER OWNER: SHANDA NETWORKING CO., LTD.

Effective date: 20130910

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201203 PUDONG NEW AREA, SHANGHAI TO: 201203 MINHANG, SHANGHAI

TR01 Transfer of patent right

Effective date of registration: 20130910

Address after: 201203 No. 1, building 690, blue wave road, Zhangjiang hi tech park, Shanghai

Patentee after: Shengqu Information Technology (Shanghai) Co., Ltd.

Address before: Shanghai city Pudong New Area 201203 GuoShouJing Road No. 356

Patentee before: Shanda computer (Shanghai) Co., Ltd.