Method, device and mobile terminal for drawing user interface using opengl

A user interface and painting technology, applied in the field of image drawing, can solve problems such as increasing the difficulty of program development, complex OpenGL transformation, and establishment, and achieve the effects of reducing the amount of calculation, reducing the difficulty of development, and reducing the load

Active Publication Date: 2019-12-13
BEIJING ANYUNSHIJI TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Whether it is moving, rotating or scaling, the goal is achieved by multiplying a new matrix on the basis of the current matrix. When drawing a model, it is necessary to first determine the coordinates of the drawing elements relative to the origin of the coordinates, and then calculate each matrix through matrix transformation. Position information such as the displacement, rotation angle, cropping, and window transformation of each drawing element relative to the origin of the coordinates, and the above position information needs to be determined by matrix operations. There are various types of transformation matrices, such as: rotation matrix, translation matrix, projection matrix, Perspective division matrix, window transformation matrix, etc., when performing multiple transformations, not only need to perform multiple matrix operations, but also need to consider the order of matrix operations, such complex matrix operations greatly increase the difficulty of program development
[0004] In addition, if there is a hierarchical relationship between multiple drawing elements, the corresponding relationship cannot be established through matrix operations, but the final position after nesting needs to be calculated by multiplying multiple matrices, which makes the OpenGL transformation more complicated.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and mobile terminal for drawing user interface using opengl
  • Method, device and mobile terminal for drawing user interface using opengl
  • Method, device and mobile terminal for drawing user interface using opengl

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

[0074] In some processes described in the specification and claims of the present invention and the above-mentioned drawings, a plurality of operations appearing in a specific order are contained, but it should be clearly understood that these operations may not be performed in the order in which they appear herein Execution or parallel execution, the sequence number of the operation, such as S11, S12, etc., is only used to distinguish different operations, and the sequence number itself does not represent any execution order. Additionally, these processes can include more or fewer operations, and these operations can be performed sequentially or in parallel.

[0075] The fol...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for drawing a user interface by using OpenGL and a mobile terminal. The method comprises the steps of transferring a matrix operation interface; obtaining a position parameter of a painting element of the matrix operation interface; obtaining position information of the painting element according to the matrix operation interface; and drawing the user interface according to the position information of the painting element, wherein the matrix operation interface is a preset interface for substituting the position parameter into matrix transformation to calculate the position information of the painting element relative to a reference coordinate origin. According to the method and the device and the mobile terminal, matrix operation when the user interface is drawn by using the OpenGL is transformed into direct transferring of the matrix operation interface, so that a developer does not need to carry out complicated matrix operation, and the development difficulty can be reduced.

Description

【Technical field】 [0001] The invention relates to the field of image drawing, in particular to a method, a device and a mobile terminal when using OpenGL to draw a user interaction interface. 【Background technique】 [0002] The full name of OpenGL is Open Graphics Library, which is an open graphics library. It is a professional graphics interface program that defines cross-programming language and cross-platform programming interface specifications. It is independent of the Windows operating system or other operating systems and can be implemented on PCs, workstations, Development of high-performance, impactful and high-visual expressive graphics processing software on hardware devices such as supercomputers and mobile phones. [0003] When using OpenGL to draw the user interface, the basic drawing process is divided into: clearing the buffer, setting the current color, drawing geometric units (drawing models), and outputting graphics. The transformation of OpenGL is actual...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/14
CPCG06F3/1407
Inventor 杨威
Owner BEIJING ANYUNSHIJI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products