Invention content
The purpose of this specification embodiment is to provide a kind of graphics engine, graphics engine construction method, update method and dressIt sets, to achieve the purpose that dynamically update the graphic plotting ability of graphics engine.
This specification embodiment is realized in:
In a first aspect, providing a kind of graphics engine, the graphics engine includes:Figure plug-in unit and the graphics engine pairThe configuration file answered is packaged with figure in the figure plug-in unit.
Second aspect provides a kind of graphics engine construction method, the method includes:
Obtain figure to be packaged;
The figure to be packaged is encapsulated as figure plug-in unit;
Generate configuration file corresponding with the figure plug-in unit;
Generate the graphics engine for including the figure plug-in unit and the configuration file.
The third aspect provides a kind of graphics engine update method, for being updated to former figures engine, by clientEnd executes, the method includes:
Determining that the determining targeted graphical for updating the graphics engine draws work(when needing to update the graphics engineEnergy file, the targeted graphical draw function file and include:Figure plug-in unit and/or configuration file;
The update request for asking the targeted graphical to draw function file is generated, and is sent to server-side;
It receives the server-side and responds the targeted graphical drafting function file that the update request returns;
Function file, which is drawn, according to the targeted graphical updates the graphics engine.
Fourth aspect provides a kind of graphics engine update method, for being updated to former figures engine, by servicingEnd executes, the method includes:
The update request that client is sent is received, the update request is used for request target graphic drawing function file, instituteIt states targeted graphical drafting function file and draws function file for updating the graphics engine, the targeted graphical and include:FigurePlug-in unit and/or configuration file;
It is asked according to the update, the really described targeted graphical draws function file;
The targeted graphical, which is returned, to the client draws function file.
5th aspect, provides a kind of graphics engine construction device, described device includes:
Figure acquiring unit, for obtaining figure to be packaged;
Encapsulation unit, for the figure to be packaged to be encapsulated as figure plug-in unit;
Configuration file generation unit, for generating configuration file corresponding with the figure plug-in unit;
Graphics engine generation unit, for generating the graphics engine for including the figure plug-in unit and the configuration file.
6th aspect, provides a kind of graphics engine updating device, for being updated to former figures engine, the dressSet including:
First function document determining unit, for when determination needs to update the graphics engine, determining for updatingThe targeted graphical for stating graphics engine draws function file, and the targeted graphical draws function file and includes:Figure plug-in unit and/or matchSet file;
Update requests to generate unit, for generating the update request for asking the targeted graphical to draw function file,And it is sent to server-side;
Function file reception unit responds the targeted graphical that the update request returns for receiving the server-sideDraw function file;
Graphics engine updating unit updates the graphics engine for drawing function file according to the targeted graphical.
7th aspect, provides a kind of graphics engine updating device, for being updated to former figures engine, the dressSet including:
Request reception unit is updated, the update request for receiving client transmission, the update request is for asking meshGraphic drawing function file is marked, the targeted graphical draws function file for updating the graphics engine, the targeted graphicalDrawing function file includes:Figure plug-in unit and/or configuration file;
Second function document determining unit, for being asked according to the update, the really described targeted graphical draws function textPart;
Function file transmission unit draws function file for returning to the targeted graphical to the client.
Eighth aspect provides a kind of electronic equipment, including:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executedIt manages device and executes following operation:
Obtain figure to be packaged;
The figure to be packaged is encapsulated as figure plug-in unit;
Generate configuration file corresponding with the figure plug-in unit;
Generate the graphics engine for including the figure plug-in unit and the configuration file.
9th aspect, provides a kind of computer storage media, the computer-readable recording medium storage one or moreA program, one or more of programs by the electronic equipment including multiple application programs when being executed so that the electronics is setIt is standby to execute following operation:
Obtain figure to be packaged;
The figure to be packaged is encapsulated as figure plug-in unit;
Generate configuration file corresponding with the figure plug-in unit;
Generate the graphics engine for including the figure plug-in unit and the configuration file.
Tenth aspect, provides a kind of electronic equipment, including:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executedIt manages device and executes following operation:
Determining that the determining targeted graphical for updating the graphics engine draws function text when needing to update graphics enginePart, the targeted graphical draw function file and include:Figure plug-in unit and/or configuration file;
The update request for asking the targeted graphical to draw function file is generated, and is sent to server-side;
It receives the server-side and responds the targeted graphical drafting function file that the update request returns;
Function file, which is drawn, according to the targeted graphical updates the graphics engine.
On the one hand tenth, provides a kind of computer storage media, the computer-readable recording medium storage one orMultiple programs, one or more of programs by the electronic equipment including multiple application programs when being executed so that the electronicsEquipment executes following operation:
Determining that the determining targeted graphical for updating the graphics engine draws function text when needing to update graphics enginePart, the targeted graphical draw function file and include:Figure plug-in unit and/or configuration file;
The update request for asking the targeted graphical to draw function file is generated, and is sent to server-side;
It receives the server-side and responds the targeted graphical drafting function file that the update request returns;
Function file, which is drawn, according to the targeted graphical updates the graphics engine.
12nd aspect, provides a kind of electronic equipment, including:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executedIt manages device and executes following operation:
The update request that client is sent is received, the update request is used for request target graphic drawing function file, instituteIt states targeted graphical drafting function file and draws function file for updating the graphics engine, the targeted graphical and include:FigurePlug-in unit and/or configuration file;
It is asked according to the update, the really described targeted graphical draws function file;
The targeted graphical, which is returned, to the client draws function file.
13rd aspect, provides a kind of computer storage media, the computer-readable recording medium storage one orMultiple programs, one or more of programs by the electronic equipment including multiple application programs when being executed so that the electronicsEquipment executes following operation:
The update request that client is sent is received, the update request is used for request target graphic drawing function file, instituteIt states targeted graphical drafting function file and draws function file for updating the graphics engine, the targeted graphical and include:FigurePlug-in unit and/or configuration file;
It is asked according to the update, the really described targeted graphical draws function file;
The targeted graphical, which is returned, to the client draws function file.
By the technical solution of above this specification embodiment offer as it can be seen that in this specification embodiment, by the way that figure is sealedBe attached in specific plug-in unit and form figure plug-in unit, corresponding configuration file is generated for each figure plug-in unit, then by figure plug-in unit andConfiguration file constitutes graphics engine, to realize the decoupling of graphic plotting ability and graphics engine.It is somebody's turn to do when client needs to updateWhen graphics engine, can be downloaded from server-side figure plug-in unit for being updated to the graphics engine and/or configuration file toClient is local, and then completes the update of graphics engine.Due to that by graphic plotting ability and can scheme in this specification embodimentThe decoupling of shape engine, therefore can realize the graphic plotting ability for dynamically updating graphics engine in client, flexibility is higher.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanationAttached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that describedEmbodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, thisThe every other embodiment that field those of ordinary skill is obtained without making creative work should all belong to thisThe range of specification protection.
This specification embodiment provides a kind of graphics engine, graphics engine construction method, update method and device.
The graphics engine provided first below this specification embodiment is introduced.
A kind of graphics engine that this specification embodiment provides, including:Figure plug-in unit configuration corresponding with the graphics engineFile is packaged with figure in the figure plug-in unit.
In this specification embodiment, figure plug-in unit is to be packaged with the plug-in unit of figure, includes for configuring in configuration fileThe basic parameter of figure in figure plug-in unit, wherein the basic parameter may include:Line color, line weight and line segment typeEtc..In practical applications, it in graphics engine may include multiple figure plug-in units and multiple configuration files.
In this specification embodiment, a certain figure is if desired drawn, graphics engine can use the corresponding figure of the figure to insertPart carries out the drafting of the figure.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine, due to can be by the solution of graphic plotting ability and graphics engine in the embodimentCoupling, therefore can realize the graphic plotting ability for dynamically updating graphics engine in client, flexibility is higher.
In this specification embodiment, in order to dynamically update the graphic plotting ability of graphics engine, gone back in graphics engineMay include:Document of agreement, the document of agreement is for identifying figure plug-in unit and configuration file.When the graphics engine in client connectsWhen receiving the plug-in unit or configuration file from server-side, the plug-in unit received or configuration text can be judged according to the document of agreementPart whether be with the matched figure plug-in unit of the graphics engine or configuration file, specifically, extracting the mark of the plug-in unit received firstThe identification parameter for knowing parameter and configuration file, judges whether the identification parameter extracted is recorded in the document of agreement later, ifBe recorded in the document of agreement, it is determined that the plug-in unit or configuration file received be with the matched figure plug-in unit of the graphics engine orConfiguration file.When the plug-in unit or configuration file for determining to receive are and the matched figure plug-in unit of the graphics engine or configuration fileWhen, update the graphics engine according to the plug-in unit or configuration file received.In addition, in order to ensure the figure plug-in unit received or matchingSetting file can normal operation, the graphics engine can also include in graphics engine:Management interface, the management interface is for addingIt carries, run figure plug-in unit and configuration file.
Next the graphics engine construction method provided this specification embodiment is introduced.
Fig. 1 is the flow chart of the graphics engine construction method of one embodiment of this specification, as shown in Figure 1, this methodIt may comprise steps of:
In a step 101, figure to be packaged is obtained.
In this specification embodiment, figure to be packaged can be arbitrary graphic, and the quantity of figure to be packaged can beIt is one or more.
In a step 102, figure to be packaged is encapsulated as figure plug-in unit.
In this specification embodiment, any one of the relevant technologies encapsulation technology may be used, figure to be packaged is sealedDress is figure plug-in unit, and this specification embodiment is not construed as limiting this.In addition, can be encapsulated in a figure plug-in unit, there are one figuresShape can also be packaged with multiple figures.
It, can be according to the graphic feature of figure to be packaged, to respectively waiting sealing when the quantity of figure to be packaged is multipleThe figure of dress is packaged, at this point, above-mentioned steps 102 can specifically include following steps:Step 1021 and step 1022,In,
In step 1021, the graphic feature of each figure to be packaged is obtained.
In this specification embodiment, graphic feature may include:Geometric properties, shape feature and textural characteristics.
In step 1022, according to graphic feature, each figure to be packaged is encapsulated into corresponding plug-in unit, figure is obtained and insertsPart.
For example, get two figures to be packaged, respectively share stock time-sharing map shape and stock K line graphs, then by stockTicket timesharing figure is encapsulated as a figure plug-in unit, and stock K line graphs are encapsulated as another figure plug-in unit.
In step 103, configuration file corresponding with figure plug-in unit is generated.
Include the basic parameter for configuring figure in figure plug-in unit in this specification embodiment, in configuration file,In, which may include:Line color, line weight and line segment type etc..One figure plug-in unit can correspond to oneA configuration file.
At step 104, the graphics engine for including figure plug-in unit and configuration file is generated.
In practical applications, it in graphics engine may include multiple figure plug-in units and multiple configuration files.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine.Due to can be by the solution of graphic plotting ability and graphics engine in the embodimentCoupling, therefore can realize the graphic plotting ability for dynamically updating graphics engine in client, flexibility is higher.
In another embodiment that this specification provides, in order to ensure the figure plug-in unit or configuration file downloaded from server-sideCan in the graphics engine of client normal operation, at this point, on the basis of the embodiment can be with embodiment shown in Fig. 1,Before above-mentioned steps 104, it can also include the following steps:
Generate the management interface for loading, running figure plug-in unit and configuration file;
At this point, above-mentioned steps 104, can specifically include following steps:
Generate the graphics engine comprising figure plug-in unit, configuration file and management interface.
In order to make it easy to understand, citing introduction is carried out in conjunction with Organization Chart shown in Fig. 2, as shown in Fig. 2, being equipped in clientGraphics engine, the graphics engine include:Figure plug-in unit A, figure plug-in unit B, figure plug-in unit C, configuration file A, configuration file B,Configuration file C and management interface, wherein figure plug-in unit A, figure plug-in unit B, configuration file A and configuration file B by preset configuration inIn graphics engine, figure plug-in unit C and configuration file C are the figure plug-in unit downloaded from server-side and configuration file, and management interface is usedThe figure plug-in unit and configuration file downloaded from server-side in load, operation, to achieve corresponding graphic drawing function.ServiceDevice end includes:Configuration center, plug-in management center and data center, wherein configuration center is used in management service end storeThe configuration file suitable for graphics engine, what plug-in management center was used to store in management service end is suitable for graphics engineFigure plug-in unit, the specific content that manages may include:Version, size and whether can use etc., data center for provide painted with figureMake relevant data.When the graphics engine in client needs update, update request can be sent to server-side to ask phaseCorresponding figure plug-in unit and/or configuration file can be returned to client by the figure plug-in unit and/or configuration file answered, server-sideEnd, for the update of graphics engine.
It as seen from the above-described embodiment,, can be from server-side when client needs to update the graphics engine in the embodimentFigure plug-in unit and/or configuration file of the download for being updated to the graphics engine are to client local, by the graphics engineIn management interface load, run the figure plug-in unit and/or configuration file, and then complete the update of graphics engine.
Fig. 3 is the flow chart of the graphics engine update method of one embodiment of this specification, and this method is used for aforementionedThe graphics engine that graphics engine construction method is built is updated, and this method is by client executing, as shown in figure 3, the partyMethod may comprise steps of:
In step 301, when determination needs to update graphics engine, the targeted graphical for updating the graphics engine is determinedFunction file is drawn, which draws function file and include:Figure plug-in unit and/or configuration file.
In this specification embodiment, graphics engine includes:Figure plug-in unit and configuration file.
In this specification embodiment, targeted graphical draws function file and may include:Figure plug-in unit;Alternatively, targeted graphicalDrawing function file may include:Configuration file;Alternatively, targeted graphical drafting function file may include:Figure plug-in unit and matchSet file.
In step 302, it generates and is asked for the update of request target graphic drawing function file, and be sent to serviceEnd.
In step 303, it receives the targeted graphical that server-side response update request returns and draws function file.
In step 304, function file is drawn according to targeted graphical and updates graphics engine.
In this specification embodiment, after receiving targeted graphical and drawing function file, targeted graphical can be obtained firstThe corresponding identification parameter of function file is drawn, determines the corresponding function of the identification parameter later, the function is finally run and realizes meshMark the graphic drawing function of graphic drawing function file.
By taking the client of Android system as an example, when it is figure plug-in unit that targeted graphical, which draws function file, the figure plug-in unitCorresponding function is DexClassLoader, and the graphic drawing function of figure plug-in unit is realized by running DexClassLoader.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine.When client needs to update the graphics engine, it can download and use from server-sideIn the figure plug-in unit and/or configuration file being updated to the graphics engine to client local, and then complete graphics engineUpdate.Since the decoupling of graphic plotting ability and graphics engine can be realized and be dynamically updated in the embodimentThe graphic plotting ability of graphics engine, flexibility are higher in client.
It is above-mentioned on the basis of which can be with embodiment shown in Fig. 3 in another embodiment that this specification providesStep 301 can specifically include following steps:Step 3011 and step 3012, wherein
In step 3011, after receiving for the graphic plotting task of graphics engine triggering, the graphic plotting is determinedThe corresponding figure plug-in unit of task.
In this specification embodiment, graphic plotting task is used to indicate graphics engine and draws specific figure.It is receivingAfter the graphic plotting task of graphics engine triggering, it may be determined that the targeted graphical that graphic plotting task requests are drawn, by meshThe corresponding figure plug-in unit of shape of marking on a map is determined as the corresponding figure plug-in unit of graphic plotting task.
In step 3012, when not having the corresponding figure plug-in unit of the graphic plotting task in the graphics engine, by thisThe corresponding figure plug-in unit of graphic plotting task is determined as targeted graphical and draws function file.
In addition, after above-mentioned steps 304, can also include the following steps:Being handled using updated graphics engine shouldGraphic plotting task.
For example, graphic plotting task indicates graphics engine graphing A, by graphics engine judge in the graphics engine whetherThere are the corresponding figure plug-in units of figure A, if there are the corresponding figure plug-in units of figure A, being loaded directly into corresponding figure plug-in unit and drawingFigure A;If without the corresponding figure plug-in units of figure A, to the corresponding figure plug-in units of server-side request figure A, taken when receivingIt is engaged in after the corresponding figure plug-in units of figure A that end returns, loads corresponding figure plug-in unit and graphing A.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine.When client needs to update the graphics engine, it can download and use from server-sideIn the figure plug-in unit being updated to the graphics engine to client local, and then complete the update of graphics engine.Due to the realityApplying can be by the decoupling of graphic plotting ability and graphics engine in example, therefore can realize that dynamically updating figure in client drawsThe graphic plotting ability held up, flexibility are higher.
It is above-mentioned on the basis of which can be with embodiment shown in Fig. 3 in another embodiment that this specification providesStep 301 can specifically include following steps:Step 3014 and step 3015, wherein
In step 3014, when the determining current configuration file needed in update graphics engine, determines and be currently configured textThe corresponding target configuration file of part, the version of the target configuration file are higher than the version of current configuration file.
In this specification embodiment, there can be version higher than current Graphics plug-in unit in client in detecting server-sideWhen figure plug-in unit, the update of the current configuration file in graphics engine is triggered.Alternatively, can also graphic plotting task receivedWhen, trigger the update of the current configuration file in graphics engine.
In step 3015, target configuration file is determined as targeted graphical and draws function file.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine.When client needs to update the graphics engine, it can download and use from server-sideIn the configuration file being updated to the graphics engine to client local, and then complete the update of graphics engine.Due to the realityApplying can be by the decoupling of graphic plotting ability and graphics engine in example, therefore can realize that dynamically updating figure in client drawsThe graphic plotting ability held up, flexibility are higher.
Fig. 4 is the flow chart of the graphics engine update method of another embodiment of this specification, and this method is used for precedingIt states the graphics engine that graphics engine construction method is built to be updated, this method is executed by server-side, as shown in figure 4, shouldMethod may comprise steps of:
In step 401, the update request that client is sent is received;Wherein, update request is used for request target figureFunction file is drawn, which draws function file for updating graphics engine, which draws function file packetIt includes:Figure plug-in unit and/or configuration file.
In step 402, it is asked according to update, certain targeted graphical draws function file.
In step 403, it returns to targeted graphical to client and draws function file.
In view of the storage capacity of server-side is relatively strong and is stored with the data of latest edition, in the embodiment, can takeBeing engaged in figure plug-in unit and configuration file of the end configuration suitable for graphics engine can be with when client needs to update the graphics engineFigure plug-in unit and/or configuration file from server-side download for being updated to the graphics engine is to client local, in turnComplete the update of graphics engine.In the embodiment, by the mutual cooperation of server-side and client, the dynamic of graphics engine is realizedUpdate, flexibility are higher.
Fig. 5 is the structural schematic diagram of the electronic equipment of one embodiment of this specification, as shown in figure 5, in hardware view,The electronic equipment includes processor, further includes optionally internal bus, network interface, memory.Wherein, memory may includeMemory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile depositReservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that itThe required hardware of his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA(Industry Standard Architecture, industry standard architecture) bus, PCI (PeripheralComponent Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry StandardArchitecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control alwaysLine etc..For ease of indicating, only indicated with a four-headed arrow in Fig. 5, it is not intended that an only bus or a type ofBus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculatingMachine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from then operation in corresponding computer program to memory is read in nonvolatile memory, in logical layerGraphics engine construction device is formed on face.Processor executes the program that memory is stored, and specifically for executing following behaviourMake:
Obtain figure to be packaged;
The figure to be packaged is encapsulated as figure plug-in unit;
Generate configuration file corresponding with the figure plug-in unit;
Generate the graphics engine for including the figure plug-in unit and the configuration file.
The method that graphics engine construction device disclosed in the above-mentioned embodiment illustrated in fig. 5 such as this specification executes can be applied toIn processor, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor or software formInstruction is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital SignalProcessor, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existingField programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are dividedVertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in this specification embodiment disclosedEach method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventionalProcessor etc..The step of method in conjunction with disclosed in this specification embodiment, can be embodied directly in hardware decoding processor executionComplete, or in decoding processor hardware and software module combine execute completion.Software module can be located at random storageDevice, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register atIn ripe storage medium.The storage medium is located at memory, and processor reads the information in memory, is completed in conjunction with its hardwareThe step of stating method.
The method that the electronic equipment can also carry out Fig. 1, and realize the work(of graphics engine construction device embodiment shown in Fig. 1Can, details are not described herein for this specification embodiment.
Fig. 6 is the structural schematic diagram of the electronic equipment of one embodiment of this specification, as shown in fig. 6, in hardware view,The electronic equipment includes processor, further includes optionally internal bus, network interface, memory.Wherein, memory may includeMemory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile depositReservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that itThe required hardware of his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA(Industry Standard Architecture, industry standard architecture) bus, PCI (PeripheralComponent Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry StandardArchitecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control alwaysLine etc..For ease of indicating, only indicated with a four-headed arrow in Fig. 6, it is not intended that an only bus or a type ofBus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculatingMachine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from then operation in corresponding computer program to memory is read in nonvolatile memory, in logical layerGraphics engine updating device is formed on face.Processor executes the program that memory is stored, and specifically for executing following behaviourMake:
Determining that the determining targeted graphical for updating the graphics engine draws function text when needing to update graphics enginePart, the targeted graphical draw function file and include:Figure plug-in unit and/or configuration file;
The update request for asking the targeted graphical to draw function file is generated, and is sent to server-side;
It receives the server-side and responds the targeted graphical drafting function file that the update request returns;
Function file, which is drawn, according to the targeted graphical updates the graphics engine.
Alternatively, specifically for executing following operation:
The update request that client is sent is received, the update request is used for request target graphic drawing function file, instituteIt states targeted graphical drafting function file and draws function file for updating the graphics engine, the targeted graphical and include:FigurePlug-in unit and/or configuration file;
It is asked according to the update, the really described targeted graphical draws function file;
The targeted graphical, which is returned, to the client draws function file.
The method that graphics engine updating device disclosed in the above-mentioned embodiment illustrated in fig. 6 such as this specification executes can be applied toIn processor, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor or software formInstruction is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital SignalProcessor, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existingField programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are dividedVertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in this specification embodiment disclosedEach method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventionalProcessor etc..The step of method in conjunction with disclosed in this specification embodiment, can be embodied directly in hardware decoding processor executionComplete, or in decoding processor hardware and software module combine execute completion.Software module can be located at random storageDevice, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register atIn ripe storage medium.The storage medium is located at memory, and processor reads the information in memory, is completed in conjunction with its hardwareThe step of stating method.
The method that the electronic equipment can also carry out Fig. 3 or Fig. 4, and realize graphics engine updating device shown in Fig. 3 or Fig. 4The function of embodiment, details are not described herein for this specification embodiment.
Certainly, other than software realization mode, other realization methods are not precluded in the electronic equipment of this specification, such asThe mode etc. of logical device or software and hardware combining, that is to say, that the executive agent of following process flow is not limited to eachLogic unit can also be hardware or logical device.
This specification embodiment also proposed a kind of computer readable storage medium, the computer-readable recording medium storageOne or more programs, the one or more program include instruction, and the instruction is when the portable electric for being included multiple application programsWhen sub- equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 1, and it is following specifically for executingMethod:
Obtain figure to be packaged;
The figure to be packaged is encapsulated as figure plug-in unit;
Generate configuration file corresponding with the figure plug-in unit;
Generate the graphics engine for including the figure plug-in unit and the configuration file.
This specification embodiment also proposed a kind of computer readable storage medium, the computer-readable recording medium storageOne or more programs, the one or more program include instruction, and the instruction is when the portable electric for being included multiple application programsWhen sub- equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 3, and it is following specifically for executingMethod:
Determining that the determining targeted graphical for updating the graphics engine draws function text when needing to update graphics enginePart, the targeted graphical draw function file and include:Figure plug-in unit and/or configuration file;
The update request for asking the targeted graphical to draw function file is generated, and is sent to server-side;
It receives the server-side and responds the targeted graphical drafting function file that the update request returns;
Function file, which is drawn, according to the targeted graphical updates the graphics engine.
This specification embodiment also proposed a kind of computer readable storage medium, the computer-readable recording medium storageOne or more programs, the one or more program include instruction, and the instruction is when the portable electric for being included multiple application programsWhen sub- equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 4, and it is following specifically for executingMethod:
The update request that client is sent is received, the update request is used for request target graphic drawing function file, instituteIt states targeted graphical drafting function file and draws function file for updating the graphics engine, the targeted graphical and include:FigurePlug-in unit and/or configuration file;
It is asked according to the update, the really described targeted graphical draws function file;
The targeted graphical, which is returned, to the client draws function file.
Fig. 7 is the structural schematic diagram of the graphics engine construction device of one embodiment of this specification, as shown in fig. 7, figureShape engine construction device 700 may include:Figure acquiring unit 701, encapsulation unit 702,703 and of configuration file generation unitGraphics engine generation unit 704, wherein
Figure acquiring unit 701, for obtaining figure to be packaged;
Encapsulation unit 702, for the figure to be packaged to be encapsulated as figure plug-in unit;
Configuration file generation unit 703, for generating configuration file corresponding with the figure plug-in unit;
Graphics engine generation unit 704, for generating the graphics engine for including the figure plug-in unit and the configuration file.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine.Due to can be by the solution of graphic plotting ability and graphics engine in the embodimentCoupling, therefore can realize the graphic plotting ability for dynamically updating graphics engine in client, flexibility is higher.
Optionally, as one embodiment, graphics engine construction device 700 can also include:
Management interface generation unit, for generating the management interface for loading, running figure plug-in unit and configuration file;
The graphics engine generation unit 704 may include:
Graphics engine generates subelement, is connect comprising the figure plug-in unit, the configuration file and the management for generatingThe graphics engine of mouth.
Optionally, as one embodiment, the quantity of the figure to be packaged is multiple, the encapsulation unit 702, canTo include:
Graphic feature obtains subelement, the graphic feature for obtaining each figure to be packaged;
Figure encapsulates subelement, for according to the graphic feature, each figure to be packaged to be encapsulated into corresponding plug-in unitIn, obtain figure plug-in unit.
The method that graphics engine construction device 700 can also carry out embodiment illustrated in fig. 1, and realize graphics engine construction deviceThe function of 700 embodiments shown in Fig. 1, details are not described herein for this specification embodiment.
Fig. 8 is the structural schematic diagram of the graphics engine updating device of one embodiment of this specification, as shown in figure 8, figureShape engine updating device 800 may include:First function document determining unit 801, update request to generate unit 802, function textPart receiving unit 803 and graphics engine updating unit 804, wherein
First function document determining unit 801, for when determination needs to update the graphics engine, determining for updatingThe targeted graphical of the graphics engine draws function file, and the targeted graphical draws function file and includes:Figure plug-in unit and/orConfiguration file;
Update requests to generate unit 802, for generating for asking the update of the targeted graphical drafting function file to be askedIt asks, and is sent to server-side;
Function file reception unit 803 responds the target that the update request returns for receiving the server-sideGraphic drawing function file;
Graphics engine updating unit 804 updates the graphics engine for drawing function file according to the targeted graphical.
As seen from the above-described embodiment, in the embodiment, figure plug-in unit is formed by the way that figure to be encapsulated into specific plug-in unit,Corresponding configuration file is generated for each figure plug-in unit, then graphics engine is constituted by figure plug-in unit and configuration file, to realizeThe decoupling of graphic plotting ability and graphics engine.When client needs to update the graphics engine, it can download and use from server-sideIn the figure plug-in unit and/or configuration file being updated to the graphics engine to client local, and then complete graphics engineUpdate.Since the decoupling of graphic plotting ability and graphics engine can be realized and be dynamically updated in the embodimentThe graphic plotting ability of graphics engine, flexibility are higher in client.
Optionally, as one embodiment, the first function document determining unit 801 may include:
Figure plug-in unit determination subelement, for receive for the graphics engine triggering graphic plotting task after,Determine the corresponding figure plug-in unit of the graphic plotting task;
First function file determination subelement is corresponded to for not having the graphic plotting task in the graphics engineFigure plug-in unit when, by the corresponding figure plug-in unit of the graphic plotting task be determined as targeted graphical draw function file;
At this point, graphics engine updating device 800, can also include:
Task processing unit is drawn, for handling the graphic plotting task using updated graphics engine.
Optionally, as one embodiment, the figure plug-in unit determination subelement may include:
Targeted graphical determination subelement, the targeted graphical drawn for determining the graphic plotting task requests;
Figure plug-in unit determination subelement, for the corresponding figure plug-in unit of the targeted graphical to be determined as the graphic plottingThe corresponding figure plug-in unit of task.
Optionally, as one embodiment, the first function document determining unit 801 may include:
Configuration file determination subelement, for when determining the current configuration file in needing to update the graphics engine,Determine that the corresponding target configuration file of the current configuration file, the version of the target configuration file are higher than the current-configurationThe version of file;
Second function file determination subelement draws function text for the target configuration file to be determined as targeted graphicalPart.
Optionally, as one embodiment, the graphics engine updating unit 804 may include:
Identification parameter obtains subelement, and the corresponding identification parameter of function file is drawn for obtaining the targeted graphical;
Function determination subelement, for determining the corresponding function of the identification parameter;
Subelement is run, realizes that the targeted graphical draws the graphic plotting work(of function file for running the functionEnergy.
The method that graphics engine updating device 800 can also carry out embodiment illustrated in fig. 3, and realize graphics engine updating deviceThe function of 800 embodiments shown in Fig. 3, details are not described herein for this specification embodiment.
Fig. 9 is the structural schematic diagram of the graphics engine updating device of another embodiment of this specification, as shown in figure 9,Graphics engine updating device 900 may include:Update request reception unit 901, the second function document determining unit 902 and work(Energy file transmission unit 903, wherein
Request reception unit 901 is updated, the update request for receiving client transmission, the update request is for askingTargeted graphical draws function file, and the targeted graphical draws function file for updating the graphics engine, the target figureShape draws function file:Figure plug-in unit and/or configuration file;
Second function document determining unit 902, for being asked according to the update, the really described targeted graphical draws functionFile;
Function file transmission unit 903 draws function file for returning to the targeted graphical to the client.
In view of the storage capacity of server-side is relatively strong and is stored with the data of latest edition, in the embodiment, can takeBeing engaged in figure plug-in unit and configuration file of the end configuration suitable for graphics engine can be with when client needs to update the graphics engineFigure plug-in unit and/or configuration file from server-side download for being updated to the graphics engine is to client local, in turnComplete the update of graphics engine.In the embodiment, by the mutual cooperation of server-side and client, the dynamic of graphics engine is realizedUpdate, flexibility are higher.
The method that graphics engine updating device 900 can also carry out embodiment illustrated in fig. 4, and realize graphics engine updating deviceThe function of 900 embodiments shown in Fig. 4, details are not described herein for this specification embodiment.
In short, the foregoing is merely the preferred embodiment of this specification, it is not intended to limit the protection of this specificationRange.For all spirit in this specification within principle, any modification, equivalent replacement, improvement and so on should be included in thisWithin the protection domain of specification.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be usedThink personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media playIt is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipmentThe combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any methodOr technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), movesState random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasableProgrammable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatusOr any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculatesMachine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludabilityIncluding so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrapInclude other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic wantElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including describedThere is also other identical elements in the process of element, method, commodity or equipment.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodimentPoint just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system realityFor applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the methodPart explanation.